Test data for the {admiral}
package taken from the CDISC pilot
project and renamed with admiral_
prefix for clarity.
As this mostly contains safety data only, we extend this as needed by
adding further test data required such as for PK and TA-specific
efficacy analyses. See the “How To Update” section below for more
details.
The package is available from CRAN and can be installed by running
install.packages("admiral.test")
.
To install the latest development version of the package directly from GitHub use the following code:
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
}
::install_github("pharmaverse/admiral.test", ref = "devel") remotes
Firstly, make a GitHub issue in this repo with the planned updates
and tag @pharmaverse/admiral
so that one of the development
core team can sanity check the request. Then there are two main ways to
extend the test data, either by adding new datasets or extending
existing datasets with new records/variables.
R/data.R
in the form
admiral_<name>
.inst/data_scripts
named
<name>.R
(e.g. rs.R
) to generate the
test data and output as admiral_<name>
. Use CDISC
pilot data such as admiral_dm
as input in this program in
order to create realistic synthetic data that remains consistent with
other domains. Note that no personal data should be
used as part of this package, even if anonymised.data
folderdevtools::document()
and include the updated
NAMESPACE
and .Rd
files in
man/
raw_<name>
(e.g. raw_ds
) and reflect this change in
R/data.R
by including both raw_<name>
and admiral_<name>
here.inst/data_scripts
named
update_<name>.R
to read in
raw_<name>
, make the updates, and output as
admiral_<name>
.data
folderdevtools::document()
and include the updated
NAMESPACE
and .Rd
files in
man/