Description Usage Arguments Value Examples
View source: R/translate_swirl.R
Translate Swirl YAML to another language
1 2 3 4 5 6 7 8 |
file |
YAML file for Swirl lesson |
outfile |
output YAML file for translated Swirl lesson |
target |
language to translate to, see |
detect |
Should |
verbose |
Print diagnostic messages |
... |
additional options to pass to |
A filename of the output file. The attribute
target_language
is also given to the filename.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
x = c("- Class: meta",
" Course: Test Class", " Lesson: Test lesson",
" Author: Shannon Ellis", "", "- Class: text",
" Output: This is an example with code `df`.")
tfile = tempfile(fileext = ".yml")
writeLines(x, tfile)
translate_swirl(tfile, outfile = tfile)
readLines(tfile)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.