folder_rd: Creates rd files for multiple data sets

Description Usage Arguments Examples

View source: R/rd.R

Description

Cycles through all of the spec files inside a folder specified in the 'spec_folder' argument. The function translates and saves them to a specified folder.

Saves the files to the folder specified in the 'rd_folder' argument.

This function is meant for packages that will ship with a copy of the translated data set.

Usage

1
folder_rd(spec_folder = "inst/specs", rd_folder = "man")

Arguments

spec_folder

The path to the folder where the YAML spec files are located. Defaults to 'inst/specs'.

rd_folder

The target folder location where the 'rd' file will be save to. Defaults to 'man'.

Examples

1
2
3
library(datalang)
my_spec_folder <- system.file("specs", package = "datalang")
folder_rd(my_spec_folder, tempdir())

edgararuiz/datalang documentation built on May 29, 2019, 11:42 a.m.