tinytest (version 1.4.1)

using: Use an extension package.

Description

Loads and attaches a package to the search path, and picks up the tinytest extension functions registered by the package. Package authors must call this function in every test file where an extension is used, or otherwise results from the extension package are not recorded (without a warning). Calling using in every file where an extension is used also ensures that tests can be run in parallel.

Usage

using(package, quietly = TRUE)

Value

A named list, with the package name and the names of the functions registered by package to extend tinytest. A message is emitted when the package registers no extension functions.

Arguments

package

the name of the extension package, given as name or character string.

quietly

Passed to require.

See Also

Other extensions: register_tinytest_extension(), tinytest()

Examples

Run this code
if (FALSE) {
  # In interactive session: see which functions are exported
  # by checkmate.tinytest
  out <- using(checkmate.tinytest)
  print(out)
}

Run the code above in your browser using DataLab