preview: Prepare rmarkdown document for instant preview

Description Usage Arguments Value Author(s)

View source: R/preview.R

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: [email protected], @sjmgarnier


swarm-lab/editR documentation built on May 26, 2017, 11:07 p.m.