Learn R Programming

testthat (version 3.1.10)

testthat_examples: Retrieve paths to built-in example test files

Description

testthat_examples() retrieves path to directory of test files, testthat_example() retrieves path to a single test file.

Usage

testthat_examples()

testthat_example(filename)

Arguments

filename

Name of test file

Examples

Run this code
dir(testthat_examples())
testthat_example("success")

Run the code above in your browser using DataLab