[Rcpp-devel] rcmdcheck() failing on "Undocumented S4 class" with RCPP_Module

Dirk Eddelbuettel edd at debian.org
Fri Oct 4 18:52:35 CEST 2024


On 4 October 2024 at 17:21, John Clarke wrote:
| Indeed roxygen2 docs will help with a workaround, I think. I've temporarily
| added a Rcpp_MyClass-class.RD based on promptClass("Rcpp_MyClass") and that
| seems to satisfy the R CMD check.

Nice, and I think that is about as it good as you will get it.  Note that
Rcpp basically never mentions roxygen2 (we support in C++ files where
compileAttributes() carries it to the R file where it gets picked up), and
neither does Writing R Extensions. The only official way is writing Rd
files. Be it by hand, be it with roxygen2 help and workarounds.

The only other idea I had was to use @name to give your existing entry the
(missing) desired name and try @aliases to map back.  No idea if that would
work.

Cheers, Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list