roclet_output.roclet_tests {roxut} | R Documentation |
Write the Results of Processing @tests Tags to Unit Test File
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
## S3 method for class 'roclet_tests'
roclet_output(x, results, base_path, ...)
Arguments
x |
A |
results |
Value returned from the |
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
[Package roxut version 0.4.0 Index]