Running tests locally

Step 0 - Prerequisite

The test framework is installed.  More information can be found here: Installing the testing framework

Step 1 - Run the test

Option 1: R studio

  1. Build and clean the project (Build menu/ Clean and rebuild). 
  2. Run the test, by using the Test Package option, from the Build menu

Option 2: Console

  1. Change to root directory of R package to be tested
  2. Use devtools::test() to start testthat


DataSHIELD Wiki by DataSHIELD is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at http://www.datashield.ac.uk/wiki