Skip to contents

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 as overwrite for remote sites. By default, only the datapackage.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.

Value

Invisible path to the child directory.

Examples

if (FALSE) {
site_make_child("uva-bi-sdad/community_example", "../community_example")
}