Open an ADaM Template Script
use_ad_template(
adam_name = "adsl",
save_path = paste0("./", adam_name, ".R"),
package = "admiral",
overwrite = FALSE,
open = interactive()
)
An ADaM dataset name. You can use any of the available
dataset names
"ADAE"
, "ADCM"
, "ADEG"
, "ADEX"
, "ADLB"
, "ADLBHY"
, "ADMH"
, "ADPC"
, "ADPP"
, "ADPPK"
, "ADSL"
, "ADVS"
.
The dataset name is case-insensitive. The default dataset name is "ADSL"
.
"adsl"
Path to save the script.
paste0("./", adam_name, ".R")
The R package in which to look for templates. By default "admiral"
.
"admiral"
Whether to overwrite an existing file named save_path
.
FALSE
Whether to open the script right away.
No return values, called for side effects
Running without any arguments such as use_ad_template()
auto-generates adsl.R
in
the current path. Use list_all_templates()
to discover which templates are available.
Utilities used for examples and template scripts:
list_all_templates()
if (interactive()) {
use_ad_template("adsl")
}