preview: Prepare rmarkdown document for instant preview

Description Usage Arguments Value Author(s)

Description

This function prepares a rmarkdown document edited with editR for instant preview. It strips its front matter if it is present and add two extra line breaks at the end to prevent editR to "misbehave" when a code chunk is created at the very end of the document.

Usage

1
preview(rmd)

Arguments

rmd

The rmarkdown document to prepare for instant preview.

Value

This function return a rmarkdown document ready for instant preview in editR.

Author(s)

Simon Garnier: garnier@njit.edu, @sjmgarnier


swarm-lab/editR documentation built on May 30, 2019, 9:35 p.m.