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 asoverwritefor remote sites. By default, only thedatapackage.jsonfile is updated.- overwrite
Logical; if
TRUE, overwrites any existing site files.datapackage.jsonis 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.