views:

228

answers:

2

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?

+4  A: 

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.

rcs
+4  A: 

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.

Dirk Eddelbuettel
Ideally a package doesn't end up with a dependency on roxygen when its used.
Shane
Good point. But the approach is still useful for RUnit.
Dirk Eddelbuettel
Absolutely! That's generally the best way to find packages that use another package.
Shane
D'Oh ! Why didn't i think of the reverse depends on CRAN ???
PaulHurleyuk