source.all: R Utilities: Source All R Files Within a Directory

Description Usage Arguments Author(s) Examples

View source: R/source.all.R

Description

Sources all R files within a specified directory.

Usage

1
source.all( path , grepstring="\\.R",  print.source=TRUE )

Arguments

path

Path where the files are located

grepstring

Which strings should be looked for? grepstring can also be a vector.

print.source

An optional logical whether the source process printed on the console?

Author(s)

Alexander Robitzsch

Examples

1
2
3
4
5
6
## Not run: 
# define path
path <- "c:/myfiles/"
# source all files containing the string 'Rex'
source.all( path , "Rex" )
## End(Not run)

miceadds documentation built on June 20, 2017, 9:10 a.m.

Search within the miceadds package
Search all R packages, documentation and source code