source_directory: Source files recursively

Description Usage Arguments

View source: R/source_directory.R

Description

Modification of sourceDirectory which repairs the behaviour of the ... argument, so that chdir and local can be passed to sourceTo.

Usage

1
2
3
source_directory(path, pattern = ".*[.](r|R|s|S|q)([.](lnk|LNK))*$",
  recursive = TRUE, envir = parent.frame(), onError = c("error",
  "warning", "skip"), modifiedOnly = FALSE, ..., verbose = FALSE)

Arguments

path

A path to a directory to be sourced.

pattern

A regular expression file name pattern to identify source code files.

recursive

If TRUE, subdirectories are recursively sourced first, otherwise not.

envir

An environment in which the code should be evaluated.

onError

If an error occurs, the error may stop the job, give a warning, or silently be skipped.

modifiedOnly

If TRUE, only files that are modified since the last time they were sourced are sourced, otherwise regardless.

...

Additional arguments passed to sourceTo().

verbose

A logical or a Verbose object.


DavidBarke/QWUtils documentation built on Jan. 13, 2020, 11:52 a.m.