editR: Edit Rmarkdown files with instant preview

Description Usage Arguments Details Value Author(s) Examples

Description

This function creates a GUI to edit Rmarkdown documents and display an instant preview of the document as it is being written. Rmarkdown documents can be rendered directly from the GUI.

Usage

1

Arguments

file

The path (as a character string) to an existing .Rmd/.md file, or to a new .Rmd/.md file. If the file does not exist, it will be created when the GUI starts.]

Details

If called from RStudio on Mac and Linux, it will open in the internal RStudio browser. If called from a terminal or on Windows, it will open in your default internet browser. editR should work without any problem with recent versions of most internet browsers. It is likely to break with older versions.

Value

This function does not return anything.

Author(s)

Simon Garnier: garnier@njit.edu, @sjmgarnier

Examples

1
2
# Create and edit a new Rmarkdown document in the current working directory
editR("example.Rmd")

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