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

2

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?

Quitrent answered 23/3, 2010 at 7:47 Comment(0)
C
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.

Conjugated answered 23/3, 2010 at 10:13 Comment(2)
Ideally a package doesn't end up with a dependency on roxygen when its used.Nocturnal
Absolutely! That's generally the best way to find packages that use another package.Nocturnal
M
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.

Mortality answered 23/3, 2010 at 8:35 Comment(0)
C
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.

Conjugated answered 23/3, 2010 at 10:13 Comment(2)
Ideally a package doesn't end up with a dependency on roxygen when its used.Nocturnal
Absolutely! That's generally the best way to find packages that use another package.Nocturnal

© 2022 - 2024 — McMap. All rights reserved.