pkg_data: Prepare datasets

Description Usage Arguments Details Value See Also

View source: R/pkg_xyz.R

Description

Save R objects as datasets

Usage

1
pkg_data(projname = ".", add = FALSE)

Arguments

projname

path to a package source, by default "." (current directory)

add

logical; should datasets be added to those already existing in data/?

Details

All R objects in __data.R are saved to the folder data/ as files on the pattern d_<obj>.rda, one for each object. If add=FALSE, then any existing files of that pattern will first be removed, before new ones are saved.

Value

.rda file(s) saved in the data/ folder.

See Also

pkg_objects


AkselA/R-projector documentation built on June 19, 2020, 4:24 p.m.