Learn R Programming

testthat (version 0.1.1)

source_dir: Load all source files in a directory.

Description

Load all source files in a directory.

Usage

source_dir(path, pattern="\\.[rR]$", chdir=TRUE)

Arguments

path
path to tests
pattern
regular expression used to filter files
chdir
change working directory to path?

Details

The expectation is that the files can be sourced in alphabetical order.