[R] How to stop roxygen from creating Rd for functions that are not exported?

Yihui Xie xie at yihui.name
Sat Nov 27 06:47:45 CET 2010


Hi all,

It seems roxygen will create Rd files for any functions under the ./R/
directory, and I did not find a way to hide certain functions, even if
I specified a name space. E.g.

#' @export
f = function() {}

#' do nothing
g = function() {}

If I run roxygenize() on the package, both f and g will be documented,
although only f is visible to the users.

Thanks!

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



More information about the R-help mailing list