Copies baseline files from an existing data site. Useful for making different sites based on the same data.
Usage
site_make_child(parent, dir, update = FALSE, overwrite = FALSE,
protect = "site.R", include = NULL, quiet = !interactive())
Arguments
- parent
Directory or GitHub repository name of the existing site to be copied.
- dir
Directory of the child site to put copies in.
- update
Logical; if
TRUE
, replaces existing site files if they are older than existing files (from a local directory). Same asoverwrite
for remote sites. By default, only thedatapackage.json
file is updated.- overwrite
Logical; if
TRUE
, overwrites any existing site files.datapackage.json
is always overwritten.- protect
A vector of file paths to prevent from being overwritten, relative to the site directory.
- include
A vector of paths to additional files to update from the parent site, relative to the site's base directory.
- quiet
Logical; if
TRUE
, does not send messages.