using: Use an extension package.

View source: R/tinytest.R

usingR Documentation

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

## Not run: 
  # In interactive session: see which functions are exported
  # by checkmate.tinytest
  out <- using(checkmate.tinytest)
  print(out)

## End(Not run)


tinytest documentation built on March 7, 2023, 7:43 p.m.