notebook: Serve R notebooks

Description Usage Arguments Details Examples

View source: R/notebook.R

Description

Serve R notebook files created from the rnotebook package.

Usage

1
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

1
# see ?rnotebook::newnb for examples

Example output



servr documentation built on Nov. 17, 2021, 1:07 a.m.

Related to notebook in servr...