Learn R Programming

doctest (version 0.3.0)

test_doctests: Test doctests in a package

Description

This is a utility function to run doctests in a local source package. It calls testthat::test_local().

Usage

test_doctests(path = ".", ...)

Value

The result of testthat::test_local().

Arguments

path

Path to package

...

Passed to testthat::test_local().

Examples

Run this code
if (FALSE) {
  test_doctests()
}

Run the code above in your browser using DataLab