tinytest (version 1.1.0)

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)

Arguments

package

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

quietly

Passed to require.

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.

See Also

Other extensions: register_tinytest_extension, tinytest

Examples

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

Run the code above in your browser using DataCamp Workspace