notebook {servr} | R Documentation |
Serve R notebook files created from the rnotebook package.
notebook(dir = ".", ...)
dir |
The root directory to serve. |
... |
server configurations passed to |
An R notebook is basically a JSON file, and the JSON data is inserted to a
predefined template in this package (system.file('resources',
'rnotebook.html', package = 'servr')
), and rendered through the JavaScript
implementation of CommonMark at the moment (the
renderer may change in the future).
# see ?rnotebook::newnb for examples