开发者

What are good example R packages written using RUnit or 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 b开发者_开发百科efore.

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


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜