Skip to content

Commit

Permalink
remove datanames()
Browse files Browse the repository at this point in the history
  • Loading branch information
gogonzo committed Jan 22, 2025
1 parent 4f07c33 commit 16cf50a
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 24 deletions.
4 changes: 1 addition & 3 deletions R/adtteSpec.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,7 @@ adtteSpecInput <- function(inputId, # nolint
#' dplyr::mutate(is_event = .data$CNSR == 0)
#' MAE <- hermes::multi_assay_experiment
#' })
#' datanames <- c("ADSL", "ADTTE", "MAE")
#' datanames(data) <- datanames
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#' join_keys(data) <- default_cdisc_join_keys[c("ADSL", "ADTTE", "MAE")]
#'
#' app <- init(
#' data = data,
Expand Down
5 changes: 4 additions & 1 deletion R/barplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ srv_g_barplot <- function(id,
#' sample_tm_g_barplot()
#' }
sample_tm_g_barplot <- function(.test = FALSE) {
data <- teal.data::teal_data(MAE = hermes::multi_assay_experiment)
data <- within(
teal.data::teal_data(),
MAE = hermes::multi_assay_experiment
)
app <- teal::init(
data = data,
modules = teal::modules(
Expand Down
5 changes: 4 additions & 1 deletion R/boxplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@ srv_g_boxplot <- function(id,
#' sample_tm_g_boxplot()
#' }
sample_tm_g_boxplot <- function(.test = FALSE) {
data <- teal.data::teal_data(MAE = hermes::multi_assay_experiment)
data <- within(
teal.data::teal_data(),
MAE = hermes::multi_assay_experiment
)
app <- teal::init(
data = data,
modules = teal::modules(
Expand Down
4 changes: 0 additions & 4 deletions R/forestplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#' dplyr::mutate(is_event = .data$CNSR == 0)
#' MAE <- hermes::multi_assay_experiment
#' })
#' datanames <- c("ADTTE", "MAE")
#' datanames(data) <- datanames
#' join_keys(data)["ADTTE", "ADTTE"] <- c("STUDYID", "USUBJID", "PARAMCD")
#'
#' app <- init(
Expand Down Expand Up @@ -311,8 +309,6 @@ sample_tm_g_forest_tte <- function(.test = FALSE) { # nolint
dplyr::mutate(is_event = .data$CNSR == 0)
MAE <- hermes::multi_assay_experiment # nolint
})
datanames <- c("ADTTE", "MAE")
datanames(data) <- datanames
join_keys(data)["ADTTE", "ADTTE"] <- c("STUDYID", "USUBJID", "PARAMCD")

app <- teal::init(
Expand Down
4 changes: 0 additions & 4 deletions R/km.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#' dplyr::mutate(is_event = .data$CNSR == 0)
#' MAE <- hermes::multi_assay_experiment
#' })
#' datanames <- c("ADTTE", "MAE")
#' datanames(data) <- datanames
#' join_keys(data)["ADTTE", "ADTTE"] <- c("STUDYID", "USUBJID", "PARAMCD")
#'
#'
Expand Down Expand Up @@ -307,8 +305,6 @@ sample_tm_g_km <- function(.test = FALSE) { # nolint
dplyr::mutate(is_event = .data$CNSR == 0)
MAE <- hermes::multi_assay_experiment # nolint
})
datanames <- c("ADTTE", "MAE")
datanames(data) <- datanames
join_keys(data)["ADTTE", "ADTTE"] <- c("STUDYID", "USUBJID", "PARAMCD")

modules <- teal::modules(
Expand Down
5 changes: 4 additions & 1 deletion R/pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,10 @@ srv_g_pca <- function(id,
#' sample_tm_g_pca()
#' }
sample_tm_g_pca <- function(.test = FALSE) {
data <- teal.data::teal_data(MAE = hermes::multi_assay_experiment)
data <- within(
teal.data::teal_data(),
MAE <- hermes::multi_assay_experiment

Check warning on line 468 in R/pca.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/pca.R,line=468,col=5,[object_name_linter] Variable and function name style should match snake_case or symbols.
)
app <- teal::init(
data = data,
modules = teal::modules(
Expand Down
5 changes: 4 additions & 1 deletion R/quality.R
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,10 @@ srv_g_quality <- function(id,
#' sample_tm_g_quality()
#' }
sample_tm_g_quality <- function(.test = FALSE) {
data <- teal.data::teal_data(MAE = hermes::multi_assay_experiment)
data <- within(
teal.data::teal_data(),
MAE <- hermes::multi_assay_experiment

Check warning on line 445 in R/quality.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/quality.R,line=445,col=5,[object_name_linter] Variable and function name style should match snake_case or symbols.
)
app <- teal::init(
data = data,
modules = teal::modules(
Expand Down
5 changes: 4 additions & 1 deletion R/scatterplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ srv_g_scatterplot <- function(id,
#' sample_tm_g_scatterplot()
#' }
sample_tm_g_scatterplot <- function(.test = FALSE) {
data <- teal.data::teal_data(MAE = hermes::multi_assay_experiment)
data <- within(
teal.data::teal_data(),
MAE <- hermes::multi_assay_experiment

Check warning on line 264 in R/scatterplot.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/scatterplot.R,line=264,col=5,[object_name_linter] Variable and function name style should match snake_case or symbols.
)
app <- teal::init(
data = data,
modules = teal::modules(
Expand Down
5 changes: 4 additions & 1 deletion R/volcanoplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ srv_g_volcanoplot <- function(id,
#' sample_tm_g_volcanoplot()
#' }
sample_tm_g_volcanoplot <- function(.test = FALSE) {
data <- teal.data::teal_data(MAE = hermes::multi_assay_experiment)
data <- within(
teal.data::teal_data(),
MAE <- hermes::multi_assay_experiment

Check warning on line 284 in R/volcanoplot.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/volcanoplot.R,line=284,col=5,[object_name_linter] Variable and function name style should match snake_case or symbols.
)
app <- teal::init(
data = data,
modules = teal::modules(
Expand Down
4 changes: 1 addition & 3 deletions man/adtteSpecServer.Rd

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

2 changes: 0 additions & 2 deletions man/tm_g_forest_tte.Rd

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

2 changes: 0 additions & 2 deletions man/tm_g_km.Rd

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

0 comments on commit 16cf50a

Please sign in to comment.