rtest: Run unit tests for a package

Description Usage Arguments Value

View source: R/rtest.r

Description

Tests a package located in path using tests in tests/testthat via test_dir.

Usage

1
rtest(path = getwd(), filter = NULL)

Arguments

path

[character]
If no path to a DESCRIPTION is given, the package looks for a DESCRIPTION in the current directory and up to two parent directories.

filter

[character(1)]
Filter tests (on a file name basis) using this pattern. Default is “NULL”, which means no filter is applied.

Value

Invisibly returns TRUE on success.


rdatsci/rt documentation built on Dec. 6, 2020, 5:31 p.m.