Create a repository for a dataset, which may include data documentation and/or a data site.
Usage
init_repository(dir, datasets = NULL, init_data = TRUE, init_site = TRUE,
init_git = TRUE, template = "sdad_dashboard", overwrite = FALSE,
quiet = !interactive())
Arguments
- dir
Directory in which to create the repository's structure. Will be created if it does not exist.
- datasets
A character vector of dataset names; for each of these, a subdirectory will be made containing
code
anddata
directories.- init_data
Logical; if
FALSE
, will not runinit_data
on the repository.- init_site
Logical; if
FALSE
, will not runinit_site
on the repository.- init_git
Logical; if
FALSE
, will not rungit init
on the repository.- template
A character indicating which site and build template to use, between
sdad_dashboard
(default) andrepository_site
.- overwrite
Logical; if
TRUE
, will overwrite existing site files indir
.- quiet
Logical; if
TRUE
, suppresses messages.