source_scripts: Source all R scripts in a directory

View source: R/source_scripts.R

source_scriptsR Documentation

Source all R scripts in a directory

Description

source_scripts sources all R scripts within a given directory in a single function call.

Usage

source_scripts(filepath = getwd())

Arguments

filepath

A character string denoting a filepath. Defaults to the working directory, getwd(). source_scripts errors if supplied with an invalid directory name or with a directory containing no R scripts.

See Also

source for sourcing a single R script.

Examples

## Not run: 
source_scripts()

## End(Not run)


jackhannah95/jafun documentation built on Feb. 9, 2023, 12:24 p.m.