Package: sketch 1.1.20.3
Chun Fung Kwok
sketch: Interactive Sketches
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.
Authors:
sketch_1.1.20.3.tar.gz
sketch_1.1.20.3.zip(r-4.5)sketch_1.1.20.3.zip(r-4.4)sketch_1.1.20.3.zip(r-4.3)
sketch_1.1.20.3.tgz(r-4.4-any)sketch_1.1.20.3.tgz(r-4.3-any)
sketch_1.1.20.3.tar.gz(r-4.5-noble)sketch_1.1.20.3.tar.gz(r-4.4-noble)
sketch_1.1.20.3.tgz(r-4.4-emscripten)sketch_1.1.20.3.tgz(r-4.3-emscripten)
sketch.pdf |sketch.html✨
sketch/json (API)
# Install 'sketch' in R: |
install.packages('sketch', repos = c('https://kcf-jackson.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/kcf-jackson/sketch/issues
javascriptjstranspilervisualisation
Last updated 9 months agofrom:51d4e441a2. Checks:OK: 3 NOTE: 4. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 14 2024 |
R-4.5-win | NOTE | Oct 14 2024 |
R-4.5-linux | NOTE | Oct 14 2024 |
R-4.4-win | NOTE | Oct 14 2024 |
R-4.4-mac | NOTE | Oct 14 2024 |
R-4.3-win | OK | Oct 14 2024 |
R-4.3-mac | OK | Oct 14 2024 |
Exports:assetsbasic_deparsersbasic_rulesbasic_tagsbundlecombine_rulescompile_activecompile_datacompile_exprscompile_rconstdeclaredefault_2_deparsersdefault_deparsersdefault_processorsdefault_rulesdefault_tagsdeparse_jsdpeng_sketchflatten_filelistget_dependenciesinsert_sketchletlicense_infolocalmake_deparsermake_ruleparse_exprread_multilinesrewriterunShinyAppsafeguardsource_activesource_jssource_rsplit_rulessrctest_sketchwebsocket
Dependencies:base64encbslibcachemclicommonmarkcrayoncurldigestfastmapfontawesomefsgluehtmltoolshttpuvjquerylibjsonlitelaterlifecyclemagrittrmemoisemimepromisespurrrR6rappdirsRcpprlangrstudioapisassshinysourcetoolsV8vctrswithrxtable
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Interactive visualisation | sketch-package sketch |
Parse and annotate expressions | annotate_exprs |
Process assets in headers | assets |
A minimal list of deparsers for deparsing JavaScript | basic_deparsers |
Bundle a list of files into a single JavaScript file | bundle |
Combine rules for fast transpilation | combine_rules |
Compile active file in 'RStudio' | compile_active |
Compile a data file into a JavaScript file | compile_data |
Compile R code into JavaScript code | compile_exprs |
Compile an R file into a JavaScript file | compile_r |
Convert an asset link into a 'shiny.tag' object | convert_src |
A list of deparsers with additional features | default_2_deparsers |
A list of default deparsers for deparsing JavaScript | default_deparsers |
A list of handlers for processing the '#!'/'#|' header | default_processors |
Deparsers (specialised) | deparse_add deparse_assignment deparse_assignment_auto deparse_assignment_pipe deparse_async_await deparse_call deparse_const deparse_d3_attr deparse_d3_style deparse_data deparse_dataURI deparse_df deparse_df_mutate deparse_df_summarise deparse_export deparse_extract deparse_extract2 deparse_extract2Assign deparse_extractAssign deparse_Family deparse_for deparse_formula deparse_function deparse_function_with_return deparse_html_tags deparse_if deparse_ifelse deparse_infix deparse_lambda deparse_let deparse_list deparse_macro deparse_NA deparse_NaN deparse_new deparse_next deparse_NULL deparse_pipe deparse_R6Class deparse_raw_string deparse_return deparse_subtract deparse_sym deparse_throw deparse_try deparse_tryCatch deparse_typeof deparse_var deparse_while deparse_wrap |
Expression deparsing for JavaScript | deparse_js |
Deparse a compiled AST | deparse_js_ast |
Constructor function to combine low-level deparsers | dp |
A language engine for 'sketch' | eng_sketch |
Flatten a list of files and directories into a list of files | flatten_filelist |
Extract the content of the `load_script` headers of a sketch R file | get_dependencies |
HTML templates | basic_tags default_tags html_tags |
Insert a 'sketch' app into an R Markdown document | insert_sketch |
Predicate for calls | is_call |
Predicate for symbols, i.e. symbols or syntactic literals | is_call_add is_call_assignment is_call_assignment_auto is_call_assignment_pipe is_call_async_await is_call_break is_call_const is_call_dataURI is_call_df is_call_df_mutate is_call_df_summarise is_call_export is_call_extract is_call_extract2 is_call_extract2Assign is_call_extractAssign is_call_for is_call_formula is_call_function is_call_if is_call_ifelse is_call_lambda is_call_let is_call_list is_call_new is_call_next is_call_pipe is_call_R6Class is_call_raw_string is_call_return is_call_subtract is_call_throw is_call_try is_call_tryCatch is_call_typeof is_call_var is_call_while is_d3_attr is_d3_style is_data is_Family is_html_tags is_infix is_macro is_sym is_wrap |
Predicate for syntactic literal | is_syntactic_literal |
Empty functions | const declare let let-declare-const |
License information | license_info |
Low-level lists of deparsers | dp_auto dp_d3 dp_dom dp_macro dp_r_support list-of-deparsers |
Header functions | load_data load_Family load_library load_script |
A helper function to enable debugger option | local |
A constructor for a "typed" deparser | make_deparser |
Make a handle to process header | make_processor |
Make a AST transformation rule | make_rule |
Parse R code | parse_expr |
Print function for 'sketch_rule' objects | print.sketch_rule |
Mapping R operators into JavaScript operators | basic_rules default_rules r-to-js-rules |
Read one or more lines from the console for the first successful parse | read_multilines |
Interface for AST rewriting | rewrite |
Run 'Shiny' Application | runShinyApp |
Perform pre-transpilation check | safeguard |
Source active file in 'RStudio' | source_active |
Serve a compiled 'sketch' JavaScript file | source_js |
Convert a compiled AST into a source map | source_map |
Create a source map (.map) file | source_map_from_files |
Display the source map in a table | source_map_table |
Source a 'sketch' R file | source_r |
Split rules for customisation | split_rules |
Get the source link of a JavaScript library | src |
Test a sketch application | test_sketch |
Convert a file into a JavaScript expression | to_json |
Verify a source map | verify_source_map |
Websocket for 'sketch' applications | websocket |