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()
)Arguments
- name
Name of the bundle
- project_dir
Path to the Data Collection Framework project.
- source_files
A list or character vector, with names as paths to standard files form source projects (relative to the project's data directory), and distribution file names as entries. This associates input with output files, allowing for calculation of a source state, and metadata inheritance from source files.
- open_after
Logical; if
FALSE, will not open the project.
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 thestandarddirectory of source projects, and write to it's owndistdirectory.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 thedistname is different, but should still inherit standard measure info, asource_identry with the original measure ID will be used to identify the original measure info. Seedcf_measure_info.