[Rcpp-devel] Bug report: need to wrap return of sugar functions

Dirk Eddelbuettel edd at debian.org
Tue Aug 16 03:25:00 CEST 2011


On 15 August 2011 at 08:36, Dirk Eddelbuettel wrote:
| 
| On 15 August 2011 at 22:11, Darren Cook wrote:
| | > | more minimal examples than the below, but as this is the one from
| | > | Rcpp-sugar.pdf I thought it most convincing:
| | > | ...
| | > No bug.
| | > 
| | > We never said that you could get by an _implicit_ wrap everywhere. Sometimes
| | > you do need an explicit wrap. This is just one of these situations.
| | 
| | Thanks for the reply.
| | In that case I'm reporting a bug in the documentation :-)
| 
| Sigh.
| 
| _What_ file? _What_ paragraph? _What_ is your suggested fix?

To close this, Darren filled me in off-list and there was indeed a
Rcpp::wrap() call missing in an early example in the Rcpp-sugar vignette.

Now corrected, with a tip-of-the-hat to Darren.

Dirk


-- 
Two new Rcpp master classes for R and C++ integration scheduled for 
New York (Sep 24) and San Francisco (Oct 8), more details are at
http://dirk.eddelbuettel.com/blog/2011/08/04#rcpp_classes_2011-09_and_2011-10
http://www.revolutionanalytics.com/products/training/public/rcpp-master-class.php


More information about the Rcpp-devel mailing list