Add Tests to Examples
Build a source location from a minimal numeric vector
Convert a srcref to a character representation
Determine the number of source code lines of a given srcref
Get String Line Count
Execute examples from Rd files as testthat tests
Test a list of files
Cached retrieval of testex options from package DESCRIPTION
Rd Example Parsing Helpers
testex roxygen2 tags
Support for testthat Expectations
Package source file helpers
Expect no Error
Return the number of characters in a line of a file
Determine which symbol to use by default when testing examples
Test whether currently executing R checks
Register a method for a suggested dependency
Split a Source Reference at specific lines
Convert to srcref
Deparse an expression and indent for pretty-printing
Deparse pretty
A syntactic helper for writing quick and easy example tests
Run examples as testthat expectations
Add testex tags and configure package to fully use testex features
Checks for use of roxygen2
vapply shorthand alternatives
Temporarily attach a namespace
Raise testthat Expectations With A Known Source Reference
Wraps an example expression in a testthat expectation to not error
Add tests in-line in examples. Provides standalone functions for facilitating easier test writing in Rd files. However, a more familiar interface is provided using 'roxygen2' tags. Tools are also provided for facilitating package configuration and use with 'testthat'.