Description Usage Arguments Details
This function will read a standard R markdown source file and convert it to an R script to allow the code to be run using the 'source' function.
1 | rmd2rscript(infile)
|
infile |
The path to the .Rmd file |
The function is quite simplisting in that it reads a .Rmd file and adds comments to non-r code sections, while leaving R code without comments so that the interpreter can run the commands.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.