Copy this repository to get started with automated testing in R.
Source code is found in the
Tests are found in the
To run the tests, run
R in the directory of the package. Then from the repl run:
> library(devtools) > devtools::test()
You can use this repository as a way to painlessly test some of your code. Just add your own functions and tests to the existing files, or add new files in the appropriate directories.
The caeser cipher function has a single test and only enough functionality to pass that test.
Practice TDD by adding tests one at a time and editing the function code to pass them iteratively.
This is an introductory repository to go with an automated testing in R talk to JHU biostats computing club on 18 October 2016.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.