rmarkdown-wrapper-js
Wrapper for R Markdown, Bookdown and Blogdown
Installation
npm install rmarkdown
Usage
;
Demo
.Rmd
Knitting
Basic Running
renderSync"/Users/foo/bar/example.Rmd"// you should use an absolute path
will produce corresponding example.xxx
documents according to the YAML frontmatter. The generated files are in the same directory as the source .Rmd
file. renderSync
's return type is the same as child_process.spawnSync()
. There is also a render()
function, which is asynchronous, whose return type is the same as child_process.spawn()
's.
There are also some useful options that you can provide, for example:
renderSync"/Users/foo/bar/example.Rmd", )
The supported options are:
For details, refer to R Markdown's Docs.