<div dir="ltr"><div dir="ltr">Thanks Dirk,<div><br></div><div>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.</div><div><br></div><div>However, I feel my confusion comes from the (I think) RCPP-generated <b>RCPP_MyClass</b> class. I don't explicitly declare that class name, it just seems to appear magically in the R CMD warnings -- but is definitely derived from my MyClass declaration. If this is the case, then I'm guessing everyone who uses RCPP with a module in C++ would have the same issue and they too will wonder how they should add documentation to the (duplicate) RCPP_MyClass class. I believe this is a DRY violation -- we already have a class declared and documented: the MyClass class, why should we also add (duplicate) documentation for its magically created twin?</div><div><br></div><div>Maybe I'm missing something here -- I'm new to R and RCPP. Feel free to ignore.</div><div><br></div><div>Thanks again,</div><div><br></div><div>-John</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 4, 2024 at 4:50 PM Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi John,<br>
<br>
That looks like a limitation in roxygen2 which appears to fully documented<br>
(as you desire) an S4 class.  As you may know, you prod roxygen2 with 'NULL'<br>
blocks to add extra documentation -- that is likely what you need here. The<br>
roxygen2 docs will have more on this.<br>
<br>
Cheers, Dirk<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
</blockquote></div></div>