Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

# see ?rnotebook::newnb for examples

servr

A Simple HTTP Server to Serve Static Files or Dynamic Documents

v0.22
GPL
Authors
Yihui Xie [aut, cre] (<https://orcid.org/0000-0003-0645-5666>), Carson Sievert [ctb], Jesse Anderson [ctb], Ramnath Vaidyanathan [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.