Learn R Programming

adapr (version 2.0.0)

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

Description

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

Usage

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

Value

value from clean_source from devtools package

Details

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

Examples

Run this code
# NOT RUN {
run.program("read_data.R","adaprHome")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab