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

Description Usage Arguments Details See Also

View source: R/sourceall.R

Description

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

Usage

1
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 Nov. 9, 2017, 3:21 p.m.