roclet_output.roclet_tests: Write the Results of Processing @tests Tags to Unit Test File

Description Usage Arguments Value Author(s)

View source: R/roclet_output.roclet_tests.R

Description

The contents of the unit tests (lines following the @tests tags) are written verbatim to the appropriate directories (directory depends on whether tinytest or testthat is in use). If there is more than one function and corresponding unit tests in a file, the first unit tests will be in filename.R, the second in filename-1.R etc.

Usage

1
2
## S3 method for class 'roclet_tests'
roclet_output(x, results, base_path, ...)

Arguments

x

A roclet object.

results

Value returned from the roclet_process() method.

base_path

Path to root of source package.

...

Other arguments passed downstream. Needed for compatibility, does not appear to be used.

Value

Invisibly, a list with the text of the tests. Writes files!

Author(s)

Bryan A. Hanson


roxut documentation built on Aug. 23, 2021, 1:10 a.m.