10

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?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
PaulHurleyuk
  • 8,009
  • 15
  • 54
  • 78

2 Answers2

7

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.

Community
  • 1
  • 1
rcs
  • 67,191
  • 22
  • 172
  • 153
6

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
  • 360,940
  • 56
  • 644
  • 725