JavaScript 4 Shiny - Field Notes
Last build: 2019-12-01
Field Notes on JavaScript for Shiny Users
About this bookdown
This Bookdown is the content of an informal JavaScript training given inside ThinkR, and will probably be updated from time to time. Itâs in no way supposed to be a complete JavaScript course nor even a complete book. Most of the content is composed of pieces of code + comments, without complete sentences.
Please read it with this in mind.
Also, this Bookdown is {shiny}
-centric so it focuses on things that can be useful when building Shiny application.
What this book covers : bascic JavaScript objects, adding JavaScript to Shiny apps, the DOM elements & DOM events, jQuery, this
and attributes, and building custom inputs for Shiny.
Youâll find in the âExamplesâ section pieces of code written in real life Shiny Apps.
The Read More part points to external resources about JavaScript and Shiny.
Installing {bubble}
- R package to interact with NodeJS
Note: youâll need to have NodeJS installed on your machine
if (!requireNamespace("bubble")){
remotes::install_github("ColinFay/bubble")
}
- Set the
{knitr}
engine for Rmds
bubble::set_node_engine()
- Access a NodeJS REPL
node_repl()
About the image
The illustration on this page comes from Flickr Commons, and is available online
Ref : > Image taken from page 33 of âStanley and Africa: also, the travels, adventures, and discoveries of Captain John H. Speke, Captain Richard F. Burton ⌠and other distinguished explorers. [With plates, including portraits.]â