Learn R Programming

ProjectTemplate (version 0.11.0)

stub.tests: Generate unit tests for your helper functions.

Description

This function will parse all of the functions defined in files inside of the lib directory and will generate a trivial unit test for each function. The resulting tests are stored in the file tests/autogenerated.R. Every test is excepted to fail by default, so you should edit them before calling test.project.

Usage

stub.tests()

Arguments

Value

No value is returned; this function is called for its side effects.

Examples

Run this code
library('ProjectTemplate')

if (FALSE) stub.tests()

Run the code above in your browser using DataLab