<div dir="ltr">Thanks again Dirk,<div><br><div>So, I think my remaining issue is not to do with how we get the documents (roxygen2 or manually) but rather that there appears to be two (2) documents required by the R CMD check for the same class: <b>Rcpp_MyClass</b> and <b>MyClass</b>. and Rcpp_MyClass doesn't appear to be relevant to the end-user. But maybe I've got this wrong. I don't even really know how to document Rcpp_MyClass because it is generated by Rcpp (correct?). I feel I'm not getting something here -- should there be two classes that R CMD is detecting? If so, what is the canonical way to document them? Maybe the answer is simple: there will be duplicate documentation. But this doesn't seem right to me.</div><div><br></div><div>Thanks,</div><div><br></div><div>-John</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 4, 2024 at 6:52 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>
On 4 October 2024 at 17:21, John Clarke wrote:<br>
| Indeed roxygen2 docs will help with a workaround, I think. I've temporarily<br>
| added a Rcpp_MyClass-class.RD based on promptClass("Rcpp_MyClass") and that<br>
| seems to satisfy the R CMD check.<br>
<br>
Nice, and I think that is about as it good as you will get it.  Note that<br>
Rcpp basically never mentions roxygen2 (we support in C++ files where<br>
compileAttributes() carries it to the R file where it gets picked up), and<br>
neither does Writing R Extensions. The only official way is writing Rd<br>
files. Be it by hand, be it with roxygen2 help and workarounds.<br>
<br>
The only other idea I had was to use @name to give your existing entry the<br>
(missing) desired name and try @aliases to map back.  No idea if that would<br>
work.<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>