source_dir {testthat}R Documentation

Load all source files in a directory.

Description

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

Usage

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

Arguments

path

path to tests

pattern

regular expression used to filter files

env

environment in which to execute test suite. Defaults to new

chdir

change working directory to path?


[Package testthat version 0.6 Index]