Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/import_template.R
Import a script template and transform it as an ScriptTemplate-class
object.
1 2 | import_template(builtin, path, language = "R", idiom = "en",
encoding = "UTF-8")
|
builtin |
The name of a built-in template. See details for available built-in template. Override |
path |
Path to the template file |
language |
The name of one language of the built-in template, could be |
idiom |
The idiom of the built-in template, could be |
encoding |
Encoding of the script template. Should be "ASCII", "latin-1" or "UTF-8" (default value) |
Actually, built-in templates are : \Sexpr{library(vartors);paste0(list_templates(), collapse = ", ")}
Return a ScriptTemplate object.
Joris Muller
ScriptTemplate-class
, script_template
1 2 3 4 5 | # import the default built-in template
import_template()
# import a specific built-in template
import_template(builtin = "anothertemplate.R")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.