runScript: Run an R script within a project using devtools::clean_source

Description Usage Arguments Details Value Examples

Description

Run an R script within a project using devtools::clean_source

Usage

1
2
runScript(r = getSourceInfo()$file$file, project.id = getProject(),
  logRmd = FALSE)

Arguments

r

R script within that project (r is short R script for convenience)

project.id

project id

logRmd

logical indicating whether to create R markdown log

Details

Lists scripts if no current script is active or r script is "".

Value

value from clean_source from devtools package

Examples

1
2
3
4
## Not run: 
run.program("read_data.R","adaprHome")

## End(Not run) 

adapr documentation built on May 1, 2019, 7:05 p.m.