runfolder: Run Folder

View source: R/runfolder.R

runfolderR Documentation

Run Folder

Description

Run all the R scripts in a folder. Author: Bryce Chamberlain.

Usage

runfolder(
  path,
  recursive = FALSE,
  is.local = TRUE,
  check.fn = NULL,
  run.files = NULL,
  verbose = TRUE,
  edit.on.err = TRUE,
  pattern = "[.][Rr]$"
)

Arguments

path

Folder to run.

recursive

Run all folder children also.

is.local

Code is running on a local machine, not a Shiny server. Helpful for skipping items that can be problematic on the server. In this case, printing to the log.

check.fn

Function to run after reach file is read-in.

run.files

Optionally pass the list of files to run. Otherwise, list.files will be run on the folder.

verbose

Print names of files and run-time via cat.

edit.on.err

Open the running file if an error occurs.

pattern

Passed to list.files. Pattern to match/filter files.

Examples

# runfolder( 'R' )

oliver-wyman-actuarial/easyR documentation built on Jan. 27, 2024, 4:35 a.m.