-
-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
Description
- Limit number of unique formals names. tmc modules have 158 unique argument names, some of them might be unified
- Make a consistent default values wherever possible
- Make one documentation template for shared arguments (Some shared arguments are documented multiple times)
Please check the table
pkgload::load_all("teal.modules.clinical")
ns <- getNamespace("teal.modules.clinical")
mods <- ls(ns) |> grep(pattern = "tm_", value = TRUE)
mod_formals <- lapply(mods, function(x) {
as.data.frame(lapply(formals(x), deparse1))
})
temp <- dplyr::bind_rows(mod_formals)
rownames(temp) <- mods
data <- as.data.frame(t(temp))
data <- dplyr::arrange(data, rownames(data))
data$consistent <- as.vector(
apply(data, 1, function(x) length(na.omit(unique(x))) <= 1)
)- create variable "default_total_label", set to "All Patients", apply to
total_labelin all modules (whenever is applicable) #928 - create variable
default_na_level, set to "<Missing>" , and apply tona_levelin all modules (whenever applicable) #929 - check if we can standardize the use of
avalandaval_var, in case of yes, useaval_var#931 - check if we can standardize the use of
avaluandavalu_var, in case of yes, useavalu_var#932 - check if we can standardize the use of
base_varandbaseline_var, in case of yes, usebaseline_var#933
Melkiades