Skip to content

Commit

Permalink
Merge pull request #28 from Boehringer-Ingelheim/rc/v0.0.13
Browse files Browse the repository at this point in the history
add roc css dependencies
  • Loading branch information
zsigmas authored Oct 25, 2024
2 parents ee12608 + 3560585 commit 3d0e458
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
11 changes: 0 additions & 11 deletions R/mod_roc.R
Original file line number Diff line number Diff line change
Expand Up @@ -4212,17 +4212,6 @@ parse_ci <- function(str) {
sort(unique(as.numeric(strsplit(str, ";", fixed = TRUE)[[1]])))
}

roc_dependencies <- function() {
htmltools::htmlDependency(
name = "dv.explorer.parameter",
version = "1.0",
package = "dv.explorer.parameter",
src = "assets",
stylesheet = "css/roc.css",
all_files = FALSE
)
}

# https://github.com/vegawidget/vegawidget/issues/217
# https://github.com/vegawidget/vegawidget/issues/218
# To fix this issue we will wrap the elements in a renderUI that will solve this problem
Expand Down
6 changes: 2 additions & 4 deletions R/utils_html_dependencies.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# handle dependency
#' @keywords internal
ebas_sel_css_dep <- function() {
htmltools::htmlDependency(
Expand Down Expand Up @@ -36,9 +35,8 @@ roc_dependencies <- function() {
htmltools::htmlDependency(
name = "dv.explorer.parameter",
version = "1.0",
package = "dv.explorer.parameter",
src = "assets",
stylesheet = "css/bp.css",
src = system.file("assets", package = "dv.explorer.parameter", mustWork = TRUE),
stylesheet = "css/roc.css",
all_files = FALSE
)
}
8 changes: 8 additions & 0 deletions inst/assets/css/roc.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.roc_menu_bar {
margin-bottom: 20px;
}

.table-condensed.roc_info_table {
margin-bottom: 5px;
}

4 changes: 2 additions & 2 deletions tests/testthat/test-lineplot_app.R
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ test_that("default values are set", {
default_par = c("PARAM22", "PARAM23"),
default_val = "VALUE2",
default_visit_var = "VISIT2",
default_visit_val = c(1, 9),
default_visit_val = list(VISIT2 = c(1, 9)),
default_main_group = "CAT2",
default_sub_group = "CAT2"
)
Expand All @@ -265,7 +265,7 @@ test_that("default values are set", {
expect_equal(input_values[[ID$INPUT$CENT]], srv_defaults[["default_centrality_function"]])
expect_equal(input_values[[ID$INPUT$DISP]], srv_defaults[["default_dispersion_function"]])
expect_equal(input_values[[ID$INPUT$VIS_COL]], srv_defaults[["default_visit_var"]])
expect_equal(input_values[[ID$INPUT$VIS]], as.character(srv_defaults[["default_visit_val"]]))
expect_equal(input_values[[ID$INPUT$VIS]], as.character(srv_defaults[["default_visit_val"]][["VISIT2"]]))
expect_equal(input_values[[ID$INPUT$VAL]], srv_defaults[["default_val"]])
expect_equal(input_values[[ID$INPUT$MGRP]], srv_defaults[["default_main_group"]])
expect_equal(input_values[[ID$INPUT$SGRP]], srv_defaults[["default_sub_group"]])
Expand Down

0 comments on commit 3d0e458

Please sign in to comment.