powered by
Compile an R file into a JavaScript file
compile_r( input, output = "", rules = default_rules(), deparsers = default_deparsers() )
A character string; the output file path.
A character string; the input file.
A character string; the output file. When the output is "", the result is printed to the standard output.
A list of rewriting rules. See make_rule for more detail.
A list of deparsers. See make_deparser for more detail.
file <- system.file("test_files/test_source.R", package = "sketch") readLines(file) compile_r(input = file)
Run the code above in your browser using DataLab