site_make_child: Make a Copy of a Data Site

View source: R/site_make_child.R

site_make_childR Documentation

Make a Copy of a Data Site

Description

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

## Not run: 
site_make_child("uva-bi-sdad/community_example", "../community_example")

## End(Not run)

uva-bi-sdad/community documentation built on Oct. 12, 2023, 1:18 p.m.