<div dir="ltr">Dieter,<div><br></div><div>Try locating the roxygen right above the function you want to document (rcpp_hello_world). If you do that then it will be placed next to that function in the .R file (when you have "standalone" roxygen within a C++ file then it's automatically associated with a NULL object in the .R file).</div>
<div><br></div><div>J.J.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 10:53 AM, Dieter Menne <span dir="ltr"><<a href="mailto:dieter.menne@menne-biomed.de" target="_blank">dieter.menne@menne-biomed.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I feel guilty that I am a Windows user, and that I am using RStudio, both of which is not welcome here. At least the latter is probably not guilty here. Before looking at the details, I had reported it on the RStudio list, because I thought it was a problem with roxygen.<br>

<br>
<br>
To reproduce:<br>
<br>
-- Generate the default rcpp_hello_world<br>
-- Test; all works well in my installation, since I am using Rcpp a lot anyway.<br>
-- Add the following title line to rcpp_hello_world.cpp<br>
<br>
//' @title Hello world<br>
#include <Rcpp.h><br>
using namespace Rcpp;<br>
<br>
// [[Rcpp::export]]<br>
List rcpp_hello_world() {<br>
<br>
---<br>
With compileAttributes, this generates:<br>
<br>
# This file was generated by Rcpp::compileAttributes<br>
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393<br>
<br>
#' @title Hello world<br>
NULL<br>
<br>
rcpp_hello_world <- function() {<br>
    .Call('test_rcpp_hello_world', PACKAGE = 'test')<br>
}<br>
-----<br>
<br>
That's fine, but note the NULL, which kills the rest of my manual building chain.<br>
<br>
<br>
R version 3.0.2 (2013-09-25)<br>
Platform: x86_64-w64-mingw32/x64 (64-bit)<br>
<br>
locale:<br>
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252<br>
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C<br>
[5] LC_TIME=German_Germany.1252<br>
<br>
attached base packages:<br>
[1] stats     graphics  grDevices utils     datasets  methods   base<br>
<br>
other attached packages:<br>
[1] Rcpp_0.11.0.2  roxygen2_4.0.0 test_1.0<br>
<br>
loaded via a namespace (and not attached):<br>
[1] brew_1.0-6     digest_0.6.4   fortunes_1.5-2 stringr_0.6.2  tools_3.0.2<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</blockquote></div><br></div>