Skip to content

Commit

Permalink
Merge pull request #30 from Boehringer-Ingelheim/rc/v0.0.14
Browse files Browse the repository at this point in the history
Switch to switch2mod
  • Loading branch information
ml-ebs-ext authored Oct 29, 2024
2 parents 3d0e458 + 97e8bdc commit a08ce77
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
12 changes: 6 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dv.explorer.parameter
Type: Package
Title: Parameter exploration modules
Version: 0.0.13
Version: 0.0.14
Authors@R: c(
person("Boehringer-Ingelheim Pharma GmbH & Co.KG", role = c("cph", "fnd")),
person(given = "Luis", family = "Moris Fernandez", role = c("aut", "cre"), email = "[email protected]"),
Expand All @@ -13,20 +13,20 @@ Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Suggests: dv.manager (>= 1.0.9.129), jsonlite, rmarkdown, testthat (>=
3.0.0), shinytest2, devtools, vdiffr, rvest, stringr, knitr,
Suggests: jsonlite, rmarkdown, testthat (>= 3.0.0),
shinytest2, devtools, vdiffr, rvest, stringr, knitr,
safetyData, png, rsvg, withr
Config/testthat/edition: 3
Config/testthat/parallel: false
Imports: shiny (>= 1.7.1),dplyr (>= 1.0.7), broom (>= 0.7.9), ggplot2
Imports: shiny (>= 1.7.1), dplyr (>= 1.0.7), broom (>= 0.7.9), ggplot2
(>= 3.3.5), DT (>= 0.19), purrr (>= 0.3.4), tidyr (>= 1.1.4),
digest, rlang, tibble, checkmate (>= 2.0.0), GGally,
fontawesome, shinyvalidate, htmltools, RColorBrewer, scales,
shinyWidgets, r2d3, stats, Hmisc, base64enc, viridisLite,
vegawidget, pROC, gt, utils, precrec, glue
vegawidget, pROC, gt, utils, precrec, glue, dv.manager (>= 2.1.3)
Depends: R (>= 4.0)
Date: Tue May 31 12:12:27 2022
Branch: dev
ParentCommit: 9edd5ae0b32a3c7afbcf7215187748f310087a8a
VignetteBuilder: knitr
Remotes: boehringer-ingelheim/[email protected].2
Remotes: boehringer-ingelheim/[email protected].3
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# dv.explorer.parameter 0.0.14

* lineplot, boxplot:
* Use dv.manager's switch2mod instead of deprecated switch2.

# dv.explorer.parameter 0.0.13

* lineplot, boxplot:
Expand Down
3 changes: 1 addition & 2 deletions R/mod_boxplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,7 @@ mod_boxplot <- function(module_id,
on_sbj_click_fun <- function() NULL
} else {
on_sbj_click_fun <- function() {
receiver_label <- afmm[["module_names"]][[receiver_id]]
afmm[["utils"]][["switch2"]](receiver_label)
afmm[["utils"]][["switch2mod"]](receiver_id)
}
}

Expand Down
3 changes: 1 addition & 2 deletions R/mod_lineplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -1602,8 +1602,7 @@ mod_lineplot <- function(module_id,

on_sbj_click_fun <- NULL
if (!is.null(receiver_id)) {
receiver_label <- afmm[["module_names"]][[receiver_id]]
on_sbj_click_fun <- function() afmm[["utils"]][["switch2"]](receiver_label)
on_sbj_click_fun <- function() afmm[["utils"]][["switch2mod"]](receiver_id)
}

lineplot_server(
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ test_communication_with_papo <- function(mod, data, trigger_input_id) {
filtered_dataset = datasets,
module_output = function() list(),
module_names = list(papo = "Papo"),
utils = list(switch2 = function(id) NULL),
utils = list(switch2mod = function(id) NULL),
dataset_metadata = list(name = shiny::reactive("dummy_dataset_name"))
)

Expand Down

0 comments on commit a08ce77

Please sign in to comment.