<div dir="ltr"><div>Hi Luis,</div><div><br></div>I recall having this problem, and I, too, had solved it by creating .Rd files for the c++ class objects.<div><br></div><div>I don't have this error anymore, and I believe the main difference is that I am curating my NAMESPACE file manually to only export the R functions instead of everything ~ `exportPattern("^[[:alpha:]]+")`</div><div><br></div><div>You may want to give that a try.</div><div><br></div><div>If that doesn't work, it would help to see this issue as a minimal reproducible example, e.g. a link to a GitHub repo.</div><div><div><br></div><div>Best,<br><div class="gmail_extra"><div><div class="gmail_signature"><div>--</div>Hao Ye<br><a href="mailto:hye@ucsd.edu" target="_blank">hye@ucsd.edu</a></div></div>
<br><div class="gmail_quote">On Tue, Aug 15, 2017 at 4:12 PM, Luis Avila <span dir="ltr"><<a href="mailto:lmavila@gmail.com" target="_blank">lmavila@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div dir="ltr">I've used Roxygen to document my R classes
<div>but having problems now documenting Rcpp exposed classes from my C++ code.</div>
<div><br>
</div>
<div>I am creating .Rd files manually and that partially solves the problem but looking for a better way.</div>
<div><br>
</div>
<div>I have a module expossing c++ classes Model and NormalModel.</div>
<div>Running R CMD check --as-cran I get:</div>
<div><br>
</div>
<div>Undocumented code objects:</div>
<div>'Model'</div>
<div><br>
</div>
<div>Undocumented S4 classes</div>
<div>'Rcpp_Model' 'Rcpp_NormalModel'</div>
<div><br>
</div>
<div>I managed to get the "undocumented code object" message to stop reporting "NormalModel" as undocumented by manually setting up a NormalModel-class.Rd file in man but can't get rid of Rcpp_NormalModel.</div>
<div><br>
</div>
<div>Is there a way to hide the classes with the Rcpp suffix, or what is the recommended way to fix this problem?</div>
<div><br>
</div>
<div>Thank you.</div><span class="gmail-HOEnZb"><font color="#888888">
<div><br>
</div>
<div>Luis</div>
<div><br>
</div>
<div><br>
</div>
</font></span></div>
</div>

</blockquote></div><br></div></div></div></div>