A the new Rcpp release 0.10.1 arrived this morning on CRAN (as already has Windows binaries) and in Debian.
This release brings an change to some of the binary interfaces. If you have packages using Rcpp, you will most likely have to reinstall them from source. Some change were made to const correctness as well as other aspects, and it seems that we have temporarily broken the excellent RcppEigen and RcppOctave packages. We are looking into this, and are sorry about the bug.
entry for 0.10.1 is below; more details are in the ChangeLog file in the package and on the
Rcpp Changelog page.
Thanks to CRANberries, you can also look at a diff to the previous release 0.10.0. As always, even fuller details are on the Rcpp Changelog page and the Rcpp page which also leads to the downloads, the browseable doxygen docs and zip files of doxygen output for the standard formats. A local directory has source and documentation too. Questions, comments etc should go to the rcpp-devel mailing list off the R-Forge page
Changes in Rcpp version 0.10.1 (2012-11-26)
Changes in Rcpp sugar:
clampwhich combines pmin and pmax, e.g. clamp( a, x, b) is the same as pmax( b, pmin(x, a) )
self_matchwhich implements something similar to
match( x, unique( x ) )
Changes in Rcpp API:
Vectortemplate class (hence
NumericVector…) get the
New helper class
no_initthat can be used to create a vector without initializing its data, e.g. :
IntegerVector out = no_init(n) ;
New exception constructor requiring only a message;
stopfunction to throw an exception
Changes in Rcpp attributes:
Ability to embed R code chunks (via specially formatted block comments) in C++ source files.
Allow specification of argument defaults for exported functions.
New scheme for more flexible mixing of generated and user composed C++ headers.
Print warning if no export attributes are found in source file.
Updated vignette with additional documentation on exposing C++ interfaces from packages and signaling errors.
Changes in Rcpp modules:
Enclose .External invocations in
Changes in R code :
attributesparameter to generate a version of
cpp_filesparameter to provide a list of C++ files to include the in the
srcdirectory of the package.
New example ‘pi simulation’ using R and C++ via Rcpp attributes