Skip to content
Open

0.4.0 #121

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
fea60e2
- Added table state return value
agenius-mohammed-ali Jul 30, 2025
0a536ec
- Updated package version
agenius-mohammed-ali Jul 30, 2025
330d327
Adding filter log levels
agenius-menna Jul 30, 2025
b0de473
Add cases to test filtering in writeToConsole and writeToFile
agenius-menna Jul 30, 2025
f951ad7
- Added module return unit tests
agenius-mohammed-ali Jul 30, 2025
10a976c
- Removed unneeded print
agenius-mohammed-ali Jul 30, 2025
bbb1bbc
- skipped failing unit tests for R 4.0.5
agenius-mohammed-ali Jul 30, 2025
9f8e590
Merge pull request #93 from Aggregate-Genius/cran
agenius-mohammed-ali Jul 30, 2025
1220487
Update news and vignettes
agenius-menna Jul 30, 2025
82f9f4b
Merge pull request #95 from Aggregate-Genius/cran
agenius-mohammed-ali Jul 31, 2025
62ea19d
- Added debug notes to debug circleci openxlsx2 version issue
agenius-mohammed-ali Jul 31, 2025
b2d0f83
- Added debug notes to debug circleci openxlsx2 version issue
agenius-mohammed-ali Jul 31, 2025
82aded1
Update example apps documentation
agenius-menna Jul 31, 2025
6db454c
Use a later snapshot that includes openxlsx2
agenius-mohammed-ali Jul 31, 2025
30a9eca
- Try to install openxlsx2 from standard cran or GH
agenius-mohammed-ali Jul 31, 2025
c1ba29c
- Fixing yaml parsing error
agenius-mohammed-ali Jul 31, 2025
3be14b6
- Wrote install package commands in separate lines to avoid parsing i…
agenius-mohammed-ali Jul 31, 2025
82f1b9f
- Removed extra comma
agenius-mohammed-ali Jul 31, 2025
e6ab2c1
install openxlsx2 from cran standard mirror only
agenius-mohammed-ali Jul 31, 2025
8c696de
- Skipped openxlsx2 tests for old R versions
agenius-mohammed-ali Jul 31, 2025
b4e9a1e
- Updated more openxlsx tests
agenius-mohammed-ali Jul 31, 2025
3646786
- Updated module documentation example app to fix long lines CMD chec…
agenius-mohammed-ali Jul 31, 2025
c5889ad
Modify DEBUG default
agenius-menna Jul 31, 2025
af8efca
- Updated module return type to include both selected rows and table …
agenius-mohammed-ali Jul 31, 2025
f114beb
- Fixed failing unit test
agenius-mohammed-ali Jul 31, 2025
aeb50c2
- Updated unit tests to cover check return values
agenius-mohammed-ali Aug 1, 2025
821977b
Relocate logging_level
agenius-menna Aug 1, 2025
6c674af
remove log level
agenius-menna Aug 1, 2025
352e8ac
Modify set_app_parameters
agenius-menna Aug 4, 2025
9f3e850
Modify Text
agenius-menna Aug 4, 2025
77f2cd6
Merge branch 'can-dev' into filter-logs
agenius-menna Aug 4, 2025
453de49
Merge pull request #97 from Aggregate-Genius/can-dev
agenius-mohammed-ali Aug 4, 2025
e7cd522
Merge pull request #92 from Aggregate-Genius/downloadableReactTable-r…
agenius-mohammed-ali Aug 4, 2025
3b99d62
- Added ggplot deprecation methods fix
agenius-mohammed-ali Aug 5, 2025
926f4ba
- Added files logger unit tests fix
agenius-mohammed-ali Aug 5, 2025
814003b
- Added debug instrictions to circleci config to help know which test…
agenius-mohammed-ali Aug 5, 2025
64f5f5d
added the debug instruction before the check package command
agenius-mohammed-ali Aug 5, 2025
c2a0d8a
Enhanced circleci debugging instructions to be more detailed
agenius-mohammed-ali Aug 5, 2025
c6a66da
- enhanced ci instructions
agenius-mohammed-ali Aug 5, 2025
dc0e544
- Try simpler command
agenius-mohammed-ali Aug 5, 2025
c90104d
- Reverted circleci configuration
agenius-mohammed-ali Aug 5, 2025
db586ff
skipped download file unit tests
agenius-mohammed-ali Aug 5, 2025
80ef1cb
- updated testthat to debug unit tests
agenius-mohammed-ali Aug 5, 2025
cae586f
- Skipped downloadablePlot for debugging
agenius-mohammed-ali Aug 5, 2025
486c3e7
- Skipped only tests that uses recent ggplot updates
agenius-mohammed-ali Aug 5, 2025
bf3c6f8
- Re-enabled downloadable file unit tests
agenius-mohammed-ali Aug 5, 2025
f0ca884
- Skipped download file unit tests related to ggplot updates
agenius-mohammed-ali Aug 5, 2025
6ee4f16
- Renabled logger unit tests
agenius-mohammed-ali Aug 5, 2025
c71db85
- Updated spelling lists and readme
agenius-mohammed-ali Aug 5, 2025
9f74928
- Added download file more unit tests
agenius-mohammed-ali Aug 5, 2025
828884e
- Updated download table filename root unit tests
agenius-mohammed-ali Aug 5, 2025
15e63c4
- Removed commented unit tests in ui functions
agenius-mohammed-ali Aug 5, 2025
d0cc619
- Added more unit tests to logger ot caught logger side effect messages
agenius-mohammed-ali Aug 5, 2025
a559c6f
- Reverted debugging instructions in testthat
agenius-mohammed-ali Aug 5, 2025
e8260f4
Merge pull request #102 from Aggregate-Genius/downloadableFile-warnin…
agenius-mohammed-ali Aug 5, 2025
0740445
- Added react table demo
agenius-mohammed-ali Aug 6, 2025
f1f561c
- Updated example apps in test folder
agenius-mohammed-ali Aug 6, 2025
53bfe22
- Fixed downloadable table example app css issue
agenius-mohammed-ali Aug 6, 2025
2052e58
bugfix for xlsx workbook download
agenius-jennifer Aug 7, 2025
b4f2a4f
cleanup
agenius-jennifer Aug 7, 2025
aa7f4bf
updated documentation
agenius-mohammed-ali Aug 7, 2025
1f9cb63
Merge pull request #103 from Aggregate-Genius/downloadableReactTable-…
agenius-mohammed-ali Aug 7, 2025
5e0a852
- init downloadableTable document
agenius-mohammed-ali Aug 7, 2025
89c97ca
- Added usage overview and UI part sections
agenius-mohammed-ali Aug 7, 2025
12e5b4f
- Added server sections
agenius-mohammed-ali Aug 7, 2025
38536c1
- Added module return section
agenius-mohammed-ali Aug 7, 2025
2f6290c
- Added customization and sample app sections
agenius-mohammed-ali Aug 7, 2025
ad3480a
- Added new vignettes document reference to other documents
agenius-mohammed-ali Aug 7, 2025
8c466d9
- Updated NEWS file
agenius-mohammed-ali Aug 7, 2025
1947c86
- Updated Readme
agenius-mohammed-ali Aug 7, 2025
d4fcb1a
- Fixed typo
agenius-mohammed-ali Aug 7, 2025
558e593
Merge remote-tracking branch 'origin/can-dev' into bugfix-xlsx
agenius-jennifer Aug 7, 2025
d652a56
Merge pull request #104 from Aggregate-Genius/bugfix-xlsx
agenius-jennifer Aug 7, 2025
dd6ff28
- Converted the loggerViewer to downloadabableReactTable
agenius-mohammed-ali Aug 8, 2025
76c1ecb
- Added file name root
agenius-mohammed-ali Aug 8, 2025
0fe35c3
- Updated logViewer UI unit tests
agenius-mohammed-ali Aug 8, 2025
dec496c
- Updated valid sample log unit tests
agenius-mohammed-ali Aug 8, 2025
c93c72e
- Updated null sample log unit tests
agenius-mohammed-ali Aug 8, 2025
068033a
- Removed unneeded unit tests
agenius-mohammed-ali Aug 8, 2025
d501456
- Updated logViewer module documenation
agenius-mohammed-ali Aug 8, 2025
26efc36
- Updated NEWS file
agenius-mohammed-ali Aug 8, 2025
45cabba
Merge pull request #107 from Aggregate-Genius/can-dev
agenius-mohammed-ali Aug 8, 2025
caea1e3
- Removed unused js custom messages
agenius-mohammed-ali Aug 8, 2025
68336fe
Update logging levels test cases
agenius-menna Aug 8, 2025
19fbf02
Merge branch 'can-dev' into filter-logs
agenius-menna Aug 8, 2025
aa78c68
Remove duplicate logging_level
agenius-menna Aug 8, 2025
0bcf9b0
Merge branch 'filter-logs' of github.com:Aggregate-Genius/periscope2 …
agenius-menna Aug 8, 2025
ea4a115
Fixing WARN issue
agenius-menna Aug 8, 2025
c3310eb
Update WARN according to fix
agenius-menna Aug 8, 2025
52e590a
Adding past modifications back
agenius-menna Aug 8, 2025
4df8e45
Adding missing space
agenius-menna Aug 8, 2025
754e123
- Updated package description
agenius-mohammed-ali Aug 11, 2025
141fd54
- Refactored downloadPlot module and removed unused code
agenius-mohammed-ali Aug 11, 2025
648eb47
- Refactored unused code from downloadableTable module
agenius-mohammed-ali Aug 11, 2025
fccbb1e
Merge pull request #106 from Aggregate-Genius/downloadableReactTable-…
agenius-mohammed-ali Aug 11, 2025
7aaed0b
Merge pull request #109 from Aggregate-Genius/can-dev
agenius-mohammed-ali Aug 11, 2025
a3b0e82
- Updated module documentation
agenius-mohammed-ali Aug 12, 2025
b8dd03c
- Updated downloadableReactTable introduction in example apps
agenius-mohammed-ali Aug 12, 2025
0228c25
Merge pull request #108 from Aggregate-Genius/code-cleanup
agenius-mohammed-ali Aug 12, 2025
1e4053e
Update WARN to WARNING
agenius-menna Aug 13, 2025
7c3896a
Update WARN to WARNING
agenius-menna Aug 13, 2025
b3e9445
Fix addHandler
agenius-menna Aug 13, 2025
3d9afb2
Merge pull request #111 from Aggregate-Genius/can-dev
agenius-mohammed-ali Aug 13, 2025
53978ac
- Updated package description
agenius-mohammed-ali Aug 13, 2025
7222de3
Merge pull request #110 from Aggregate-Genius/test_app_followup
agenius-mohammed-ali Aug 13, 2025
5dbc44e
download row names
agenius-jennifer Aug 14, 2025
8291fe4
add parameter names, update documentation
agenius-jennifer Aug 20, 2025
b2202a4
- Increased code coverage
agenius-mohammed-ali Aug 20, 2025
409cf0a
Merge pull request #112 from Aggregate-Genius/download-rownames
agenius-mohammed-ali Aug 20, 2025
2e1f607
update logviewer
agenius-menna Aug 26, 2025
cf0afa5
Fix date and loglevel issue
agenius-menna Aug 26, 2025
df164ee
- Updated with can-dev updates
agenius-mohammed-ali Aug 27, 2025
5cddfa5
- Updated set_app_parameters default values based on recent package d…
agenius-mohammed-ali Aug 27, 2025
4bb53b6
- Fixed UI functions
agenius-mohammed-ali Aug 27, 2025
0baa839
- Increased ui helpers test coverage
agenius-mohammed-ali Aug 27, 2025
1754cd2
- Increased logger test coverage
agenius-mohammed-ali Aug 27, 2025
bec33bd
Merge pull request #96 from Aggregate-Genius/filter-logs
agenius-mohammed-ali Aug 28, 2025
055ae35
- Updated NEWS and RD files
agenius-mohammed-ali Aug 28, 2025
6d6421c
- Updated NEWS file
agenius-mohammed-ali Aug 28, 2025
a729bf0
- Update NEWS file
agenius-mohammed-ali Aug 28, 2025
c26ca25
- Updated NEWS file and package version with the final version number
agenius-mohammed-ali Sep 3, 2025
2d2741f
- Updated package documentation and site
agenius-mohammed-ali Sep 3, 2025
1dc7bb9
Merge pull request #113 from Aggregate-Genius/0.3.0-documentation
agenius-mohammed-ali Sep 3, 2025
967b484
- Updated cran comments
agenius-mohammed-ali Sep 3, 2025
f6fa808
Merge pull request #114 from Aggregate-Genius/Cran-submission-comment
agenius-mohammed-ali Sep 3, 2025
120af11
Updated NEWS and package version
agenius-mohammed-ali Jul 8, 2026
61661d9
Merge branch 'cran' into can-dev
agenius-mohammed-ali Jul 8, 2026
ac4daed
Merge pull request #117 from Aggregate-Genius/v0.3.1
agenius-mohammed-ali Jul 8, 2026
0e95800
Updated ui functions unit tests
agenius-mohammed-ali Jul 8, 2026
f82c8b4
- Fixed log viewer unit test
agenius-mohammed-ali Jul 8, 2026
ea7eb21
Removed unneeded and always failing GitHub cmd check
agenius-mohammed-ali Jul 8, 2026
623c0d8
- Updated shiny repo for R 4.0.5
agenius-mohammed-ali Jul 8, 2026
d8564e2
- Added more logs to circleci to understand the failing issue
agenius-mohammed-ali Jul 8, 2026
7da400f
- Trying repo "posit.co"
agenius-mohammed-ali Jul 8, 2026
cdaccd5
- Try cran.rstudio repo
agenius-mohammed-ali Jul 8, 2026
2521670
- Added repo to support older R version
agenius-mohammed-ali Jul 8, 2026
1d1c3d6
- Adding more generic solution
agenius-mohammed-ali Jul 8, 2026
6126615
- Updated package version to 0.4.0
agenius-mohammed-ali Jul 9, 2026
315aded
- Removed "covr" from R 4_2 config
agenius-mohammed-ali Jul 9, 2026
afd00eb
- Fixed config format
agenius-mohammed-ali Jul 9, 2026
acd9ebe
Install proper version of bs4Dash for R 4.2
agenius-mohammed-ali Jul 9, 2026
927bcbe
Added debugging instructions to find failing tests in circleCI
agenius-mohammed-ali Jul 9, 2026
6432bf5
- Updated ggplot required version
agenius-mohammed-ali Jul 9, 2026
d85b1fe
- Updated ggplot related unit tests to take care of old version
agenius-mohammed-ali Jul 9, 2026
7592a8a
- Removed debugging instructions from circleci cofig file
agenius-mohammed-ali Jul 9, 2026
5ae843e
Added another table change observer and returning an actual and updat…
agenius-mohammed-ali Jul 15, 2026
b5b108e
- defined the state variables
agenius-mohammed-ali Jul 16, 2026
2594eee
Avoid local stage install issue
agenius-mohammed-ali Jul 16, 2026
509effc
- update for init state
agenius-mohammed-ali Jul 16, 2026
2b7cae5
Use table_react_params for selection fallback
agenius-mohammed-ali Jul 16, 2026
02ca896
- Fixed unit tests
agenius-mohammed-ali Jul 16, 2026
3664c38
Added unit test to increase coverage
agenius-mohammed-ali Jul 16, 2026
1566fe4
Merge pull request #118 from Aggregate-Genius/downloadableReactTable-…
agenius-mohammed-ali Jul 22, 2026
8085718
Add a path checker for installation
agenius-menna Jul 31, 2026
5e62120
Bug prevent rvenv
agenius-menna Aug 4, 2026
4ba5b26
Remove debugging
agenius-menna Aug 4, 2026
b96e536
update news
agenius-menna Aug 4, 2026
efff4db
Merge pull request #119 from Aggregate-Genius/renv-issue
agenius-mohammed-ali Aug 5, 2026
348a640
- Updated .gitignore file
agenius-mohammed-ali Aug 5, 2026
be4abe1
Added renv related files
agenius-mohammed-ali Aug 5, 2026
e32cb81
Updated roxygen
agenius-mohammed-ali Aug 5, 2026
66d95ac
- Updated word list
agenius-mohammed-ali Aug 5, 2026
00da6bb
- Removed staged install for CRAN submission
agenius-mohammed-ali Aug 5, 2026
0845c6b
Updated NEWS file
agenius-mohammed-ali Aug 5, 2026
ef4b3b8
updated documentation and website
agenius-mohammed-ali Aug 5, 2026
51a7bdf
Merge pull request #120 from Aggregate-Genius/Update-Documentation-0.4.0
agenius-mohammed-ali Aug 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
^renv$
^renv\.lock$
^\.github$
^.*\.Rproj$
^\.Rproj\.user$
Expand Down
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ workflows:
version: 2
Prepare-All-R-Editions:
jobs:
- Build-for-r4_0_5
- Build-for-r4_2_0
- Build-for-rLATEST

jobs:

Build-for-r4_0_5:
Build-for-r4_2_0:
docker:
- image: rocker/verse:4.0.5
- image: rocker/verse:4.2

steps:
- checkout
Expand All @@ -34,12 +34,11 @@ jobs:
- run:
name: Install R dependencies
command: |
R -e 'install.packages("shiny", repos = "https://cran.rstudio.com/")'
R -e 'install.packages("bs4Dash", repos = "https://cran.rstudio.com/")'
R -e 'install.packages(c("shinyWidgets", "yaml", "DT", "writexl", "fresh", "miniUI", "shinyFeedback"))'
R -e 'install.packages(c("canvasXpress", "waiter", "shinyjs", "openxlsx", "spelling", "colourpicker", "lifecycle"))'
R -e 'install.packages(c("canvasXpress", "waiter", "shinyjs", "openxlsx", "openxlsx2", "spelling", "colourpicker", "lifecycle"))'
R -e 'install.packages("covr")'
R -e 'install.packages("reactable")'
R -e 'install.packages("openxlsx2", repos = "https://cloud.r-project.org")'
R -e 'install.packages("bs4Dash", repos = "https://cran.rstudio.com/")'

- run:
name: Session information and installed package versions
Expand All @@ -61,6 +60,7 @@ jobs:
R CMD check *tar.gz



Build-for-rLATEST:
docker:
- image: rocker/verse:latest
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/R-CMD-check.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ vignettes/*.pdf
/Meta/
inst/doc
tests/testthat/*/log/

.Rprofile
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: periscope2
Type: Package
Title: Enterprise Streamlined 'shiny' Application Framework Using 'bs4Dash'
Version: 0.3.0
Version: 0.4.0.9001
Authors@R: c(
person("Mohammed", "Ali", role = c("aut", "cre"), email = "mohammed@aggregate-genius.com"),
person("Constance", "Brett", role = c("ctb")),
Expand All @@ -18,7 +18,7 @@ License: GPL-3
Encoding: UTF-8
Language: en-US
Depends:
R (>= 4.0)
R (>= 4.2)
Imports:
shiny (>= 1.7),
bs4Dash (>= 2.3),
Expand All @@ -34,7 +34,6 @@ Imports:
writexl,
yaml,
lifecycle
RoxygenNote: 7.3.2
Suggests:
assertthat,
canvasXpress,
Expand All @@ -52,3 +51,5 @@ Suggests:
waiter
VignetteBuilder: knitr
Roxygen: list(markdown = TRUE)
Config/roxygen2/version: 8.0.0
RoxygenNote: 7.3.3
11 changes: 11 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# periscope2 0.4.0

## New Features
- Bumped minimum R version to 4.2 to keep up with modern shiny/promises/httr2/testthat.

## Bug Fixes
- Fixed renv installation error
- Fixed *?downloadableReactTable* module return value reactivity issue

-----

# periscope2 0.3.0

## New Features
Expand Down
39 changes: 33 additions & 6 deletions R/downloadableReactTable.R
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,16 @@ downloadableReactTable <- function(id,
logger = NULL) {
shiny::moduleServer(id,
function(input, output, session) {
downloadable_module_state <- shiny::reactiveVal(list(selected_rows = NULL, table_state = NULL))
is_stale <- shiny::reactiveVal(FALSE)

if (is.null(table_data) || !is.function(table_data)) {
logerror("'table_data' parameter must be a function or reactive expression.", logger = logger)
output$reactTableOutputID <- reactable::renderReactable({ NULL })
} else {
table_react_params <- shiny::reactiveValues(table_data = NULL,
pre_selected_rows = NULL)

if (is.null(file_name_root)) {
logwarn("'file_name_root' parameter should not be NULL. Setting default value 'data_file'.", logger = logger)
file_name_root <- "data_file"
Expand All @@ -243,7 +247,9 @@ downloadableReactTable <- function(id,
pre_selected_rows <- NULL
}

shiny::observe({
shiny::observeEvent(table_data(), {
is_stale(TRUE)

if (!is.data.frame(table_data())) {
table_data <- shiny::reactiveVal(data.frame(table_data()))
}
Expand All @@ -256,7 +262,7 @@ downloadableReactTable <- function(id,

}
shiny::outputOptions(output, "displayButton", suspendWhenHidden = FALSE)
})
}, priority = 10)

shiny::observe({
table_react_params$pre_selected_rows <- NULL
Expand Down Expand Up @@ -351,14 +357,35 @@ downloadableReactTable <- function(id,
table_output
})
}
shiny::reactive({
shiny::observe({

table_state <- reactable::getReactableState("reactTableOutputID")
selected_rows <- NULL
if (!is.null(table_state) && !is.null(table_state$selected) && is.data.frame(table_data())) {
selected_rows <- table_data()[table_state$selected, ]

# data is just re/set and new react state is not ready yet
if (is_stale()) {
# If the state is NULL or empty, it means the browser just finished resetting.
# We can turn off the stale flag.
if (is.null(table_state) || is.null(table_state$selected)) {
is_stale(FALSE)
if (!is.null(table_react_params) && !is.null(table_react_params$pre_selected_rows) && is.data.frame(table_data())) {
selected_rows <- table_data()[table_react_params$pre_selected_rows, ]
}
}

downloadable_module_state(list(selected_rows = selected_rows, table_state = NULL))

} else { # the table is rendered, get the state directly from react table
if (!is.null(table_state)) {
if (!is.null(table_state$selected) && is.data.frame(table_data())) {
selected_rows <- table_data()[table_state$selected, ]
}
downloadable_module_state(list(selected_rows = selected_rows, table_state = table_state))
}
}
list(selected_rows = selected_rows, table_state = table_state)
})

downloadable_module_state
}
)
}
Loading