compile_r | R Documentation |
Compile an R file into a JavaScript file
compile_r(
input,
output = "",
rules = default_rules(),
deparsers = default_deparsers()
)
input |
A character string; the input file. |
output |
A character string; the output file. When the output is "", the result is printed to the standard output. |
rules |
A list of rewriting rules. See make_rule for more detail. |
deparsers |
A list of deparsers. See make_deparser for more detail. |
A character string; the output file path.
file <- system.file("test_files/test_source.R", package = "sketch")
readLines(file)
compile_r(input = file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.