Skip to content

Commit

Permalink
1108 {shinytest2} feature branch (#1126)
Browse files Browse the repository at this point in the history
Closes #1108 

A unified branch for all partial PRs that will solve #1108 

Merge at the end. Place where we can unify PRs

---------

Signed-off-by: André Veríssimo <[email protected]>
Signed-off-by: Marcin <[email protected]>
Signed-off-by: Vedha Viyash <[email protected]>
Signed-off-by: kartikeya kirar <[email protected]>
Co-authored-by: m7pr <[email protected]>
Co-authored-by: André Veríssimo <[email protected]>
Co-authored-by: Vedha Viyash <[email protected]>
Co-authored-by: vedhav <[email protected]>
Co-authored-by: kartikeya kirar <[email protected]>
Co-authored-by: Dawid Kałędkowski <[email protected]>
Co-authored-by: Dawid Kałędkowski <[email protected]>
Co-authored-by: gogonzo <[email protected]>
Co-authored-by: vedhav <[email protected]>
Co-authored-by: kartikeyakirar <[email protected]>
  • Loading branch information
11 people authored May 10, 2024
1 parent 340b60b commit 1cdbc7c
Show file tree
Hide file tree
Showing 41 changed files with 9,720 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
with:
additional-env-vars: |
_R_CHECK_CRAN_INCOMING_REMOTE_=false
TESTING_DEPTH=5
additional-r-cmd-check-params: --as-cran
enforce-note-blocklist: true
note-blocklist: |
Expand Down
11 changes: 6 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: teal.modules.clinical
Title: 'teal' Modules for Standard Clinical Outputs
Version: 0.9.1.9003
Date: 2024-05-08
Date: 2024-05-09
Authors@R: c(
person("Joe", "Zhu", , "[email protected]", role = c("aut", "cre")),
person("Jana", "Stoilova", , "[email protected]", role = "aut"),
Expand Down Expand Up @@ -71,6 +71,7 @@ Suggests:
lubridate (>= 1.7.9),
nestcolor (>= 0.1.0),
pkgload,
rvest,
shinytest2,
styler,
testthat (>= 3.1.5),
Expand All @@ -80,16 +81,16 @@ VignetteBuilder:
Config/Needs/verdepcheck: insightsengineering/teal,
insightsengineering/teal.transform, insightsengineering/tern,
tidymodels/broom, mllg/checkmate, tidyverse/dplyr, rstudio/DT,
insightsengineering/formatters, tidyverse/ggplot2, slowkow/ggrepel,
r-lib/lifecycle, daroczig/logger, insightsengineering/rlistings,
tidyverse/ggplot2, slowkow/ggrepel, r-lib/lifecycle,
daroczig/logger, insightsengineering/rlistings,
rstudio/rmarkdown, insightsengineering/rtables, r-lib/scales,
rstudio/shiny, daattali/shinyjs, rstudio/shinyvalidate,
dreamRs/shinyWidgets, insightsengineering/teal.code,
insightsengineering/teal.data, insightsengineering/teal.logger,
insightsengineering/teal.reporter, insightsengineering/teal.widgets,
insightsengineering/tern.gee, insightsengineering/tern.mmrm,
tidyverse/tidyr, shosaco/vistime, tidyverse/forcats, yihui/knitr,
tidyverse/lubridate, insightsengineering/nestcolor, r-lib/pkgload,
shosaco/vistime, tidyverse/forcats, yihui/knitr, tidyverse/lubridate,
insightsengineering/nestcolor, r-lib/pkgload, tidyverse/rvest,
rstudio/shinytest2, r-lib/styler, r-lib/testthat, r-lib/withr
Config/Needs/website: insightsengineering/nesttemplate
Config/testthat/edition: 3
Expand Down
2 changes: 1 addition & 1 deletion R/tm_a_gee.R
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ srv_gee <- function(id,

iv_r <- reactive({
iv <- shinyvalidate::InputValidator$new()
iv$add_rule("conf_level", shinyvalidate::sv_required("Please choose a confidence level."))
iv$add_rule("conf_level", shinyvalidate::sv_required("Please choose a confidence level"))
iv$add_rule(
"conf_level",
shinyvalidate::sv_between(
Expand Down
5 changes: 2 additions & 3 deletions R/tm_g_pp_therapy.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@ template_therapy <- function(dataname = "ANL",

dataname[setdiff(cols_to_include, names(dataname))] <- NA

therapy_table <-
dataname %>%
therapy_table <- dataname %>%
dplyr::filter(atirel %in% c("CONCOMITANT", "PRIOR")) %>% # removed PRIOR_CONCOMITANT
dplyr::select(dplyr::all_of(cols_to_include)) %>%
dplyr::filter(!is.na(cmdecod)) %>%
dplyr::mutate(Dosage = paste(cmdose, cmdosu, cmdosfrq, cmroute)) %>%
dplyr::select(-cmdose, -cmdosu, -cmdosfrq, -cmroute) %>%
dplyr::select(cmindc, cmdecod, Dosage, dplyr::everything()) %>%
dplyr::mutate(CMDECOD = dplyr::case_when(
dplyr::mutate(!!cmdecod_char := dplyr::case_when(
nchar(as.character(cmdecod)) > 20 ~ as.character(cmtrt),
TRUE ~ as.character(cmdecod)
)) %>%
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/helper-TealAppDriver.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ init_teal_app_driver <- function(...) {
.package = "teal"
)
}

ns_des_input <- function(id, dataname, type) {
sprintf("%s-dataset_%s_singleextract-%s", id, dataname, type)
}
Loading

0 comments on commit 1cdbc7c

Please sign in to comment.