Skip to contents

Grabs .Rd files and creates yaml templates to then translate.

Usage

i18n_translation_templates(rd_files, folder, macros = NULL)

Arguments

rd_files

character vector of rd files.

folder

folder where to save the templates. Will be created if it doesn't exist.

macros

a set of macros definitions.

Examples

rd_files <- system.file("extdata", "periodic.Rd", package = "rhelpi18n")
template_folder <- tempdir()
i18n_translation_templates(rd_files, template_folder)
#> /home/runner/work/_temp/Library/rhelpi18n/extdata/periodic.Rd 
#>                               "/tmp/RtmpIF9lAz/periodic.yaml"