Skip to content
Prev 2741 / 10988 Next

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

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