translate_folder: Translates and saves multiple a data sets

Description Usage Arguments Examples

View source: R/translate.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. It also creates and saves the help files.

Saves a translated versions of the data set in 'rda' format.

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

Usage

1
2
translate_folder(spec_folder = "inst/specs", data_folder = "data",
  rd_folder = "man")

Arguments

spec_folder

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

data_folder

The target folder location where the 'rda' file will be saved to.

rd_folder

The target folder location where the help files will be saved to.

Examples

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

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