servr (version 0.14)

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 CommonMark at the moment (the renderer may change in the future).

Examples

Run this code
# NOT RUN {
# see ?rnotebook::newnb for examples
# }

Run the code above in your browser using DataCamp Workspace