Learn R Programming

servr (version 0.2)

notebook: Serve R notebooks

Description

Serve R notebook files created from the rnotebook package.

Usage

notebook(dir = ".", ...)

Arguments

dir
the root directory to serve
...
server configurations passed to server_config()

Details

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 http://commonmark.org{CommonMark} at the moment (the renderer may change in the future).

Examples

Run this code
# see ?rnotebook::newnb for examples

Run the code above in your browser using DataLab