Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmg_g_pp_vitals: remove param #713

Merged
merged 2 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.1
RoxygenNote: 7.2.2
asbates marked this conversation as resolved.
Show resolved Hide resolved
nikolas-burkoff marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

### Miscellaneous
* Package now uses `scda.2022` rather than `scda.2021` in SUGGESTS.
* Removed unused argument `param` from `tm_g_pp_vitals`.

# teal.modules.clinical 0.8.14

Expand Down
12 changes: 1 addition & 11 deletions R/tm_g_pp_vitals.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ template_vitals <- function(dataname = "ANL",
#' @param patient_col (`character`)\cr patient ID column to be used.
#' @param paramcd ([teal.transform::choices_selected()] or [teal.transform::data_extract_spec()])\cr
#' \code{PARAMCD} column of the ADVS dataset.
#' @param param ([teal.transform::choices_selected()] or [teal.transform::data_extract_spec()])\cr
#' \code{PARAM} column of the ADVS dataset.
#' @param aval ([teal.transform::choices_selected()] or [teal.transform::data_extract_spec()])\cr
#' \code{AVAL} column of the ADVS dataset.
#' @param xaxis ([teal.transform::choices_selected()] or [teal.transform::data_extract_spec()])\cr
Expand Down Expand Up @@ -216,10 +214,6 @@ template_vitals <- function(dataname = "ANL",
#' choices = variable_choices(ADVS, "PARAMCD"),
#' selected = "PARAMCD"
#' ),
#' param = choices_selected(
#' choices = variable_choices(ADVS, "PARAM"),
#' selected = "PARAM"
#' ),
#' xaxis = choices_selected(
#' choices = variable_choices(ADVS, "ADY"),
#' selected = "ADY"
Expand All @@ -240,7 +234,6 @@ tm_g_pp_vitals <- function(label,
parentname = "ADSL",
patient_col = "USUBJID",
paramcd = NULL,
param = NULL,
aval = NULL,
xaxis = NULL,
font_size = c(12L, 12L, 25L),
Expand Down Expand Up @@ -270,7 +263,6 @@ tm_g_pp_vitals <- function(label,
args <- as.list(environment())
data_extract_list <- list(
paramcd = `if`(is.null(paramcd), NULL, cs_to_des_select(paramcd, dataname = dataname)),
param = `if`(is.null(param), NULL, cs_to_des_select(param, dataname = dataname)),
aval = `if`(is.null(aval), NULL, cs_to_des_select(aval, dataname = dataname)),
xaxis = `if`(is.null(xaxis), NULL, cs_to_des_select(xaxis, dataname = dataname))
)
Expand Down Expand Up @@ -300,7 +292,6 @@ ui_g_vitals <- function(id, ...) {
ui_args <- list(...)
is_single_dataset_value <- teal.transform::is_single_dataset(
ui_args$paramcd,
ui_args$param,
ui_args$aval,
ui_args$xaxis
)
Expand All @@ -313,7 +304,7 @@ ui_g_vitals <- function(id, ...) {
teal.reporter::simple_reporter_ui(ns("simple_reporter")),
###
shiny::tags$label("Encodings", class = "text-primary"),
teal.transform::datanames_input(ui_args[c("paramcd", "param", "aval", "xaxis")]),
teal.transform::datanames_input(ui_args[c("paramcd", "aval", "xaxis")]),
teal.widgets::optionalSelectInput(
ns("patient_id"),
"Select Patient:",
Expand Down Expand Up @@ -366,7 +357,6 @@ srv_g_vitals <- function(id,
parentname,
patient_col,
paramcd,
param,
aval,
xaxis,
plot_height,
Expand Down
8 changes: 0 additions & 8 deletions man/tm_g_pp_vitals.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.