sourcedir: source all the .R files in a directory

Description Usage Arguments Value Author(s)

Description

source all the .R files in a directory

Usage

1
sourcedir(dir, pattern = "\\.[rR]")

Arguments

dir

the path to a directory containing .R files

pattern

a regular expression. Only file names which match the regular expression will be returned. The default matches all files ending in ‘.r’ or ‘.R’

Value

nothing. the side effect is that the source code is imported.

Author(s)

Mark Cowley, 2012-03-07


drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.