run_R: Launches scripts from '.R' or '.Rmd' files

Description Usage Arguments Value

Description

Depending on the type of file, the function will source code from a .R file or render a document from a .Rmd.

Usage

1
run_R(x, out_dir = "../results", output_format = "html_document", ...)

Arguments

x

name of file

out_dir

location in which to store documents compiled from .Rmd files

output_format

format in which to compile a .Rmd document

...

additional parameters to pass to rmarkdown::render when rendering a .Rmd file

Value

NULL

This function is meant to facilitate launching a series of preprocessing, data exploration, and analysis scripts in R. After each script is run, any existing global variables are removed; therefore, data passed from one script to another should be outputed as an intermediate .RData file.


graggsd/sgrpipe documentation built on May 14, 2019, 9:36 p.m.