rmd2rscript: ## script for converting .Rmd files to .R scripts. #### Kevin...

View source: R/rmd2rscript.R

rmd2rscriptR Documentation

## script for converting .Rmd files to .R scripts. #### Kevin Keenan 2014

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

rmd2rscript(infile)

Arguments

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.


JihongZ/usefulR documentation built on Sept. 14, 2023, 6:09 p.m.