Rdocumentation
powered by
Learn R Programming
sketch (version 1.1.20.3)
Interactive Sketches
Description
Creates static / animated / interactive visualisations embeddable in R Markdown documents. It implements an R-to-JavaScript transpiler and enables users to write JavaScript applications using the syntax of R.
Copy Link
Link to current version
Version
Version
1.1.20.3
1.1.19
1.1.17
1.0.3
Install
install.packages('sketch')
Monthly Downloads
179
Version
1.1.20.3
License
Apache License (>= 2.0)
Maintainer
Chun Fung Kwok
Last Published
February 2nd, 2024
Functions in sketch (1.1.20.3)
Search all functions
license_info
License information
is_call
Predicate for calls
print.sketch_rule
Print function for 'sketch_rule' objects
src
Get the source link of a JavaScript library
list-of-deparsers
Low-level lists of deparsers
r-to-js-rules
Mapping R operators into JavaScript operators
test_sketch
Test a sketch application
source_map_from_files
Create a source map (.map) file
source_map_table
Display the source map in a table
html_tags
HTML templates
default_2_deparsers
A list of deparsers with additional features
default_deparsers
A list of default deparsers for deparsing JavaScript
insert_sketch
Insert a 'sketch' app into an R Markdown document
local
A helper function to enable debugger option
make_processor
Make a handle to process header
make_rule
Make a AST transformation rule
is_syntactic_literal
Predicate for syntactic literal
parse_expr
Parse R code
make_deparser
A constructor for a "typed" deparser
split_rules
Split rules for customisation
safeguard
Perform pre-transpilation check
load_Family
Header functions
source_r
Source a 'sketch' R file
runShinyApp
Run 'Shiny' Application
source_js
Serve a compiled 'sketch' JavaScript file
is_Family
Predicate for symbols, i.e. symbols or syntactic literals
to_json
Convert a file into a JavaScript expression
to_shiny_tag
Load JavaScript / CSS / 'sketch' R / CSV file
source_map
Convert a compiled AST into a source map
read_multilines
Read one or more lines from the console for the first successful parse
source_active
Source active file in 'RStudio'
rewrite
Interface for AST rewriting
websocket
Websocket for 'sketch' applications
sketch-package
Interactive visualisation
verify_source_map
Verify a source map
compile_active
Compile active file in 'RStudio'
compile_r
Compile an R file into a JavaScript file
convert_src
Convert an asset link into a 'shiny.tag' object
compile_data
Compile a data file into a JavaScript file
compile_exprs
Compile R code into JavaScript code
annotate_exprs
Parse and annotate expressions
assets
Process assets in headers
bundle
Bundle a list of files into a single JavaScript file
combine_rules
Combine rules for fast transpilation
basic_deparsers
A minimal list of deparsers for deparsing JavaScript
dp
Constructor function to combine low-level deparsers
let-declare-const
Empty functions
flatten_filelist
Flatten a list of files and directories into a list of files
eng_sketch
A language engine for 'sketch'
deparse_js
Expression deparsing for JavaScript
default_processors
A list of handlers for processing the '#!'/'#|' header
deparse_js_ast
Deparse a compiled AST
get_dependencies
Extract the content of the `load_script` headers of a sketch R file
deparse_Family
Deparsers (specialised)