Test data (ADaM) for the pharmaverse family of packages
To provide a one-stop-shop for ADaM test data in the pharmaverse family of packages.
The ADaM contents of this package is populated by an action that executes the {admiral}
, {admiralonco}
, {admiralophtha}
, {admiralvaccine}
and {admiralpeds}
templates and saves the resulting datasets here. This action can be triggered manually by the package maintainers in two scenarios:
- Regularly, upon new releases of these packages;
- Ad-hoc, whenever templates in the above packages have been updated but releases are far away in the calendar. In this case, the ADaM datasets are created using the development version of the templates.
The package is available from CRAN and can be installed by running install.packages("pharmaverseadam")
. To install the latest development version of the package directly from GitHub use the following code:
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
}
remotes::install_github("pharmaverse/pharmaverseadam", ref = "main")
The documentation process in {pharmaverseadam}
is automated for consistency and ease of maintenance. Metadata for each dataset, such as names, labels, descriptions, authors, and sources, is managed in a centralized XLSX file (inst/extdata/adams-specs.xlsx
) and used to generate .R
documentation files.
- Metadata Preparation:
- Ensure
adams-specs.xlsx
contains up-to-date metadata for all datasets. - Missing fields default to "No label/description/source available."
- Ensure
- Run Script:
- The
data-raw/create_adams_data.R
script dynamically retrieves metadata, enriches it with dataset attributes, and generates.R
files in theR/
directory.
- The
- Generate Documentation:
- Use
roxygen2::roxygenize()
to update.Rd
files in theman/
directory.
- Use