extractRcode | R Documentation |
extractRcode pulls out the r-code blocks from Rmd files and saves them into a separate R file.
extractRcode(indir, rmdfile, filename = "out.R")
indir |
the directory in which the rmd file is to be found and into which the output file will be placed. |
rmdfile |
the name of the Rmd file whose R code is to be extracted |
filename |
the name of the R file into which the r-code is to go. |
generates an R file in the working directory, otherwise returns nothing
print("wait on a real example")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.