load_scripts: Load in all R scripts

View source: R/source-and-load.R

load_scriptsR Documentation

Load in all R scripts

Description

Sources all R-scripts from specified folder via base::source().

Usage

load_scripts(
  folder = "R",
  script.subset = NULL,
  recursive = FALSE,
  verbose = TRUE
)

Arguments

folder

The absolute or relative to the folder of interest.

script.subset

A regular expression that match the file names you want to load in specified as a character vector.

recursive

Logical. If set to TRUE the file listing recurs into subsequent folders (starting with the folder specified in folder).

verbose

Logical. If set to TRUE informative messages will be printed.

(Warnings will always be printed.)

Value

Sourced in functions as a side effect and an invisible TRUE.


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.