<html><head></head><body bgcolor="#FFFFFF"><div>Thanks. </div><div><br></div><div>I'm not home tonight, i can pick it up tomorrow if nobody beats me to it. </div><div><br></div><div>Romain</div><div><br></div><div><br></div><div>Le 14 mars 2012 à 12:20, Glenn Lawyer <<a href="mailto:lawyer@mpi-inf.mpg.de">lawyer@mpi-inf.mpg.de</a>> a écrit :<br><br></div><div></div><blockquote type="cite"><div>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Not sure if this is the right place to send it or not, but according
to the Rcpp homepage<br>
<br>
"We now have a <a moz-do-not-send="true" href="http://lists.r-forge.r-project.org/pipermail/rcpp-devel/">mailing
list</a> for discussions around Rcpp. If you have ideas or
suggested changes, send an email there."<br>
<br>
I suggest modifying inst/doc/Rcpp-modules/Rcpp-modules.Rnw in two
places, as indicated in the text below and in the attached version
of Rcpp-modules.Rnw<br>
<br>
The motivation for the change is that the R code as shown in the
vingette does not load the compiled code, and thus fails. It is not
otherwise clear from the vingette how to load compiled code. It is
also not clear from the unit tests, as these rely on inline
compilation i.e.<br>
fx <- cxxfunction( signature(), "" , include = inc, plugin =
"Rcpp" )<br>
mod <- Module( "yada", getDynLib(fx) )<br>
<br>
###################################<br>
First suggested change<br>
###################################<br>
305,306d304<br>
< For this brief example, assume the code has been compiled as
``test.so'' using R CMD SHLIB. In general, however, we recommend the
use of packages.<br>
< <br>
312c310<br>
< mod <- Module( "mod", PACKAGE=dyn.load( "test.so" ) )<br>
---<br>
> mod <- Module( "mod" )<br>
<br>
<br>
###################################<br>
Second suggested change -- please make sure the R code is correct,
and the comments should be removed<br>
###################################<br>
<br>
360c358<br>
< Assuming this code is contained in package myPackage, then the
functions are available in \proglang{R} via:<br>
---<br>
> and can then be used from \proglang{R}:<br>
364,365c362,363<br>
< require( myPackage ) ## is this sufficient??<br>
< yada <- Module( "yada" ) ## does this need to indicate the
package??<br>
---<br>
> <br>
> yada <- Module( "yada" )<br>
<br>
###################################<br>
<br>
<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="66">--
-----------------------------------
It is difficult to find a black cat in a dark room,
especially if there is no cat.
-- Chinese proverb
Dr. Glenn Lawyer
+352 661 967 244
Max-Planck-Institut für Informatik
Computational Biology and Applied Algorithmics
Campus E1 4
66123 Saarbrücken, Germany
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://bioinf.mpi-inf.mpg.de/%7Elawyer">http://bioinf.mpi-inf.mpg.de/~lawyer</a>
</pre>
</div></blockquote><blockquote type="cite"><div><Rcpp-modules.Rnw></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Rcpp-devel mailing list</span><br><span><a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a></span><br><span><a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></span></div></blockquote></body></html>