Establishes a new data bundle project, used to prepare outputs from standardized datasets.
Usage
dcf_add_bundle(
name,
project_dir = ".",
source_files = NULL,
open_after = interactive()
)
Project
Within a bundle project, there are two files to edits:
build.R
: This is the primary script, which is automatically rerun. It should read data from thestandard
directory of source projects, and write to it's owndist
directory.measure_info.json
: This should list all non-ID variable names in the data files withindist
. These will inherit the standard measure info if found in the source projects referred to insource_files
. If thedist
name is different, but should still inherit standard measure info, asource_id
entry with the original measure ID will be used to identify the original measure info. Seedcf_measure_info
.