diff --git a/inst/templates/ad_adex.R b/inst/templates/ad_adex.R index 7cff90a2aa..aa6f5b40d3 100644 --- a/inst/templates/ad_adex.R +++ b/inst/templates/ad_adex.R @@ -16,7 +16,7 @@ library(stringr) # as needed and assign to the variables below. # The CDISC pilot datasets are used for demonstration purpose. data("admiral_adsl") -data("admiral_ex") +data("ex") adsl <- admiral_adsl diff --git a/inst/templates/ad_adpp.R b/inst/templates/ad_adpp.R index c215c5cdeb..d1acd39964 100644 --- a/inst/templates/ad_adpp.R +++ b/inst/templates/ad_adpp.R @@ -6,7 +6,7 @@ # # Input: pp, adsl library(admiral) -library(admiral.test) # Contains example datasets from the CDISC pilot project +library(pharmaversesdtm) # Contains example datasets from the CDISC pilot project library(dplyr) library(lubridate) library(stringr) @@ -19,7 +19,7 @@ library(stringr) # For illustration purposes read in admiral test data # Load PP and Adsl -data("admiral_pp") +data("pp") data("admiral_adsl") # When SAS datasets are imported into R using haven::read_sas(), missing @@ -27,7 +27,7 @@ data("admiral_adsl") # as NA values. Further details can be obtained via the following link: # https://pharmaverse.github.io/admiral/cran-release/articles/admiral.html#handling-of-missing-values # nolint -pp <- convert_blanks_to_na(admiral_pp) +pp <- convert_blanks_to_na(pp) # Lookup tables ---- param_lookup <- tibble::tribble( diff --git a/inst/templates/ad_adppk.R b/inst/templates/ad_adppk.R index 7d69820370..c16ec615b6 100644 --- a/inst/templates/ad_adppk.R +++ b/inst/templates/ad_adppk.R @@ -9,8 +9,7 @@ library(admiral) library(dplyr) library(lubridate) library(stringr) - -library(admiral.test) # Contains example datasets from the CDISC pilot project or simulated +library(pharmaversesdtm) # Contains example datasets from the CDISC pilot project or simulated # ---- Load source datasets ---- @@ -19,10 +18,10 @@ library(admiral.test) # Contains example datasets from the CDISC pilot project o # For illustration purposes read in admiral test data # Load PC, EX, VS, LB and ADSL -data("admiral_pc") -data("admiral_ex") -data("admiral_vs") -data("admiral_lb") +data("pc") +data("ex") +data("vs") +data("lb") data("admiral_adsl") @@ -33,21 +32,10 @@ adsl <- admiral_adsl # as NA values. Further details can be obtained via the following link: # https://pharmaverse.github.io/admiral/cran-release/articles/admiral.html#handling-of-missing-values # nolint -# Load EX - -ex <- convert_blanks_to_na(admiral_ex) - -# Load PC - -pc <- convert_blanks_to_na(admiral_pc) - -# Load VS for baseline height and weight - -vs <- convert_blanks_to_na(admiral_vs) - -# Load LB for baseline lab values - -lb <- convert_blanks_to_na(admiral_lb) +ex <- convert_blanks_to_na(ex) +pc <- convert_blanks_to_na(pc) +vs <- convert_blanks_to_na(vs) +lb <- convert_blanks_to_na(lb) # ---- Lookup tables ---- param_lookup <- tibble::tribble(