Set up test infrastructure
- Call
use_testthat()sets up the testing framework by:
- Adding Suggests: testthat to DESCRIPTION
- Creating the directory
tests/testthat/ - Adding the script
tests/testthat.R. - Updating the
DESCRIPTION
- Call
use_test("strsplit1")to create the filetests/testthat/test-strsplit1.Rwhere we are going to write our test.