construct_yml_config: Construct a datapackager.yml configuration

Description Usage Arguments Value Examples

View source: R/yamlR.R

Description

Constructs a datapackager.yml configuration object from a vector of file names and a vector of object names (all quoted). Can be written to disk via yml_write. render_root is set to a randomly generated named subdirectory of tempdir().

Usage

1
construct_yml_config(code = NULL, data = NULL, render_root = NULL)

Arguments

code

A vector of filenames

data

A vector of quoted object names

render_root

The root directory where the package data processing code will be rendered. Defaults to is set to a randomly generated named subdirectory of tempdir().

Value

a datapackager.yml configuration represented as an R object

Examples

1
2
3
conf <- construct_yml_config(code = c('file1.rmd','file2.rmd'), data=c('object1','object2'))
tmp <- normalizePath(tempdir(), winslash = "/")
yml_write(conf,path=tmp)

ropensci/DataPackageR documentation built on Aug. 27, 2019, 9:57 a.m.