sourceall: Source all R-code files that match the pattern

View source: R/sourceall.R

sourceallR Documentation

Source all R-code files that match the pattern

Description

This function sources the files in a specified directory that follow the supplied pattern.

Usage

sourceall(dir = getwd(), pattern = ".*\\.R", ...)

Arguments

dir

character, the directory to look for the files. Defaults to the working directory

pattern

character, the regular expression that defines the pattern of the files to be sourced. Defaults to all files with ".R" extension.

...

other arguments passed to source()

Details

All files in the dir directory are sourced in alphabetical order via source.

See Also

source


mbojan/mbtools documentation built on Oct. 16, 2023, 8:18 p.m.