To use within Sanger just load SoftPack environment and start RStudio
module load HGI/softpack/groups/hgi/farmers-report
module load HGI/common/rstudio
rstudio start -M 8000
You can now knit report or serve an app.
To run tests simply execute within an environment
Rscript tests/testthat.R
To calculate the coverage
Rscript tests/covr.R
The coverage reports can be found in reports/ directory.