Learn R Programming

⚠️There's a newer version (1.7.3) of this package.Take me there.

exampletestr (version 1.3.1)

Help for Writing Unit Tests Based on Function Examples

Description

Take the examples written in your documentation of functions and use them to create shells (skeletons which must be manually completed by the user) of test files to be tested with the 'testthat' package.

Copy Link

Version

Install

install.packages('exampletestr')

Monthly Downloads

762

Version

1.3.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Rory Nolan

Last Published

July 9th, 2018

Functions in exampletestr (1.3.1)

extract_examples_rd

Extract examples from a .Rd file as a character vector.
extract_examples

Extract examples lines from the functions in a .R file of a package.
make_test_shell

Make the shell of a test_that test.
text_parse_error

Does parsing of text give an error?
test-shells

Create test shells.
construct_expect_equal

Construct an expect_equal expression
extract_expressions

Text expression groups.