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

52 standardise optional notation #1094

Merged
merged 4 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 8 additions & 8 deletions R/argument_convention.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' @param aval_var (`character`)\cr name of the analysis value variable.
#' @param baseline_var (`character`)\cr name of the variable for baseline values of the analysis variable.
#' @param base_var `r lifecycle::badge("deprecated")` Please use the `baseline_var` argument instead.
#' @param basic_table_args optional, (`basic_table_args`)\cr object created by [teal.widgets::basic_table_args()]
#' @param basic_table_args (`basic_table_args`) optional\cr object created by [teal.widgets::basic_table_args()]
#' with settings for the module table. The argument is merged with option `teal.basic_table_args` and with default
#' module arguments (hard coded in the module body).
#' For more details, see the vignette: `vignette("custom-basic-table-arguments", package = "teal.widgets")`.
Expand All @@ -46,7 +46,7 @@
#' @param event_type (`character`)\cr type of event that is summarized (e.g. adverse event, treatment). Default
#' is `"event"`.
#' @param font_size (`numeric`)\cr font size value.
#' @param ggplot2_args optional, (`ggplot2_args`)\cr object created by [teal.widgets::ggplot2_args()] with settings
#' @param ggplot2_args (`ggplot2_args`) optional\cr object created by [teal.widgets::ggplot2_args()] with settings
#' for the module plot. The argument is merged with option `teal.ggplot2_args` and with default module arguments
#' (hard coded in the module body).
#' For more details, see the vignette: `vignette("custom-ggplot2-arguments", package = "teal.widgets")`.
Expand Down Expand Up @@ -88,7 +88,7 @@
#' records in `treatment_flag_var`.
#' @param treatment_flag_var (`character`)\cr name of the on treatment flag variable.
#' @param useNA (`character`)\cr whether missing data (`NA`) should be displayed as a level.
#' @param var_labels optional, (named `character`)\cr variable labels for relabeling the analysis variables.
#' @param var_labels (named `character`) optional\cr variable labels for relabeling the analysis variables.
#' @param visit_var (`character`)\cr variable names that can be used as `visit` variable. Must be a factor in
#' `dataname`.
#' @param worst_flag_indicator (`character`)\cr value indicating worst grade.
Expand All @@ -115,7 +115,7 @@ NULL
#' excluded to reduce duplication as each module function inherits parameters from its corresponding template
#' function.
#'
#' @param arm_ref_comp optional, (`list`)\cr If specified it must be a named list with each element corresponding to
#' @param arm_ref_comp (`list`) optional,\cr if specified it must be a named list with each element corresponding to
#' an arm variable in `ADSL` and the element must be another list (possibly
#' with delayed [teal.transform::variable_choices()] or delayed [teal.transform::value_choices()]
#' with the elements named `ref` and `comp` that the defined the default
Expand Down Expand Up @@ -175,13 +175,13 @@ NULL
#' available choices and preselected option for the parameter code variable from `dataname`.
#' @param parentname (`character`)\cr parent analysis data used in teal module, usually this refers to `ADSL`.
#' @param patient_col (`character`)\cr name of patient ID variable.
#' @param plot_height optional, (`numeric`)\cr a vector of length three with `c(value, min, max)`. Specifies the
#' @param plot_height (`numeric`) optional\cr vector of length three with `c(value, min, max)`. Specifies the
#' height of the main plot and renders a slider on the plot to interactively adjust the plot height.
#' @param plot_width optional, (`numeric`)\cr a vector of length three with `c(value, min, max)`. Specifies the width
#' @param plot_width (`numeric`) optional\cr vector of length three with `c(value, min, max)`. Specifies the width
#' of the main plot and renders a slider on the plot to interactively adjust the plot width.
#' @param post_output optional, (`shiny.tag`)\cr with text placed after the output to put the output into context.
#' @param post_output (`shiny.tag`) optional,\cr with text placed after the output to put the output into context.
#' For example the [shiny::helpText()] elements are useful.
#' @param pre_output optional, (`shiny.tag`)\cr with text placed before the output to put the output into context.
#' @param pre_output (`shiny.tag`) optional,\cr with text placed before the output to put the output into context.
#' For example a title.
#' @param strata_var ([teal.transform::choices_selected()])\cr names of
#' the variables for stratified analysis.
Expand Down
2 changes: 1 addition & 1 deletion R/tm_a_mmrm.R
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ template_mmrm_plots <- function(fit_name,
#' @inheritParams template_mmrm_plots
#' @param method ([teal.transform::choices_selected()])\cr object with
#' all available choices and pre-selected option for the adjustment method.
#' @param ggplot2_args (`ggplot2_args`) \cr optional, object created by [`teal.widgets::ggplot2_args()`]
#' @param ggplot2_args (`ggplot2_args`) optional\cr object created by [`teal.widgets::ggplot2_args()`]
#' with settings for all the plots or named list of `ggplot2_args` objects for plot-specific settings.
#' List names should match the following: `c("default", "lsmeans", "diagnostic")`. The argument is merged
#' with option `teal.ggplot2_args` and with default module arguments (hard coded in the module body).
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_forest_rsp.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' estimator plot symbol. Typically, the symbol size is proportional to the sample size used
#' to calculate the estimator. If `NULL`, the same symbol size is used for all subgroups.
#' @param strata_var (`character`)\cr names of the variables for stratified analysis.
#' @param ggplot2_args optional, (`ggplot2_args`)\cr
#' @param ggplot2_args (`ggplot2_args`) optional\cr
#' object created by [teal.widgets::ggplot2_args()] with settings for the module plot. For this
#' module, this argument will only accept `ggplot2_args` object with `labs` list of following child
#' elements: `title`, `caption`. No other elements would be taken into account. The argument is
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_ipp.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' `TRUE`.
#' @param paramcd_first (`character`)\cr `paramcd` text to append to the plot title and y-axis label.
#' @param add_avalu (`logical`)\cr whether `avalu_first` text should be appended to the plot title and y-axis label.
#' @param ggplot2_args optional, (`ggplot2_args`)\cr object created by [teal.widgets::ggplot2_args()] with settings
#' @param ggplot2_args (`ggplot2_args`) optional\cr object created by [teal.widgets::ggplot2_args()] with settings
#' for the module plot. For this module, this argument will only accept `ggplot2_args` object with `labs` list of
#' the following child elements: `title`, `subtitle`, `x`, `y`. No other elements are taken into account. The
#' argument is merged with option `teal.ggplot2_args` and with default module arguments (hard coded in the module
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_lineplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @inheritParams template_arguments
#' @param param (`character`)\cr parameter to filter the data by.
#' @param incl_screen (`logical`)\cr whether the screening visit should be included.
#' @param ggplot2_args optional, (`ggplot2_args`)\cr object created by [teal.widgets::ggplot2_args()] with settings
#' @param ggplot2_args (`ggplot2_args`) optional\cr object created by [teal.widgets::ggplot2_args()] with settings
#' for the module plot. For this module, this argument will only accept `ggplot2_args` object with `labs` list of
#' following child elements: `title`, `subtitle`, `caption`, `y`, `lty`. No other elements would be taken into
#' account. The argument is merged with option `teal.ggplot2_args` and with default module arguments (hard coded in
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ split_choices <- function(x) {
#' @param dataname (`character`)\cr
#' `dataname` from data_extract input.
#' This might be retrieved like `data_extract_spec(...)[[1]]$dataname`.
#' @param filter optional, (`logical`)\cr
#' @param filter (`logical`) optional,\cr
#' if the connected `extract_data_spec` has objects passed to its `filter` argument
#'
#' @return a string
Expand Down
2 changes: 1 addition & 1 deletion man/extract_input.Rd

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

2 changes: 1 addition & 1 deletion man/make_barchart_simple_call.Rd

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

10 changes: 5 additions & 5 deletions man/module_arguments.Rd

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

2 changes: 1 addition & 1 deletion man/template_a_gee.Rd

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

2 changes: 1 addition & 1 deletion man/template_abnormality.Rd

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

2 changes: 1 addition & 1 deletion man/template_abnormality_by_worst_grade.Rd

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

2 changes: 1 addition & 1 deletion man/template_adverse_events.Rd

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

2 changes: 1 addition & 1 deletion man/template_ancova.Rd

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

6 changes: 3 additions & 3 deletions man/template_arguments.Rd

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

2 changes: 1 addition & 1 deletion man/template_binary_outcome.Rd

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

2 changes: 1 addition & 1 deletion man/template_coxreg_m.Rd

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

2 changes: 1 addition & 1 deletion man/template_coxreg_u.Rd

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

Loading
Loading