Creates the standard structure required for a new OMOP study package. It includes standard folders, R scripts, test and documentation files and it installs a default list of DARWIN EU®/OHDSI packages.
Examples
if (FALSE) { # \dontrun{
# Create the package in an existing study folder
study_path <- file.path(tempdir(), "P1-C1-001")
dir.create(study_path)
studyGenerics::insertStructure(
studyName = "P1-C1-001",
path = study_path
)
# - Initialize NAMESPACE
devtools::document()
# - Check package is valid
devtools::check()
} # }