save_translation: Translates and saves a data set

Description Usage Arguments Examples

View source: R/translate.R

Description

Saves a translated version of the data set in 'rda' format. It wraps the translate_data() function, and saves the output.

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

Usage

1
save_translation(spec_path, data_folder = "data")

Arguments

spec_path

The file location of the YAML spec translation file. It is a required argument, cannot be left NULL.

data_folder

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

Examples

1
2
3
library(datalang)
my_spec <- system.file("specs/thisweek.yml", package = "datalang")
save_translation(my_spec, tempdir())

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