Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are good example R packages written using RUnit or roxygen?

Tags:

r

roxygen

I'm writing an R package that's going to be used by others, so I'm trying to get this one right! I want to use roxygen for documentation and RUnit for unit testing, but I haven't used them before.

What packages exist (either on CRAN or elsewhere) that use either of these tools well?

like image 324
PaulHurleyuk Avatar asked Mar 23 '10 07:03

PaulHurleyuk


2 Answers

Roxygen is used in Hadley's stringr (see also this previous SO question: R documentation with Roxygen), mutatr and testthat packages.

But testthat is used for testing in the mentioned packages instead of RUnit.

like image 104
rcs Avatar answered Nov 16 '22 22:11

rcs


If you look at the RUnit page at CRAN you see the list of of packages that have a Depends:, Imports: or Suggests: on it. Maybe try one of those? The list includes plyr and a bunch of Rmetrics packages.

Likewise, the roxygen page at CRAN can be looked at but it only lists a single package.

like image 43
Dirk Eddelbuettel Avatar answered Nov 16 '22 22:11

Dirk Eddelbuettel