rmd2rscript: RMarkdown to R Script

Description Usage Arguments Details

View source: R/rmd.R

Description

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.

Usage

1
rmd2rscript(infile)

Arguments

infile

The path to the .Rmd file

Details

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.


AABoyles/ShRoud documentation built on May 5, 2019, 11:28 a.m.