rmd2rscript | R Documentation |
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.
rmd2rscript(infile)
infile |
The file path needed to be transformed 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.