Skip to content
Prev 167087 / 398502 Next

R package tests

There is a mechanism for testing code in R packages (R CMD check), see 
the Writing R extensions manual. If you need more flexibility for your 
tests, you could look at RUnit on CRAN, or svUnit on R-Forge 
(http://r-forge.r-project.org, on CRAN soon). For the later one, you 
install it by:

install.packages("svUnit", repos="http://R-Forge.R-project.org")

These is a vignette associated with svUnit:

vignette("svUnit")

Note that RUnit and svUnit are "test suite code" compatible, but they 
use very different mechanisms internally.
Best,

Philippe Grosjean

..............................................<?}))><........
  ) ) ) ) )
( ( ( ( (    Prof. Philippe Grosjean
  ) ) ) ) )
( ( ( ( (    Numerical Ecology of Aquatic Systems
  ) ) ) ) )   Mons-Hainaut University, Belgium
( ( ( ( (
..............................................................
Nathan S. Watson-Haigh wrote: