[Rcpp-devel] Rcpp 0.8.9
Dirk Eddelbuettel
edd at debian.org
Sun Nov 28 14:09:50 CET 2010
Version 0.8.9 of Rcpp is now on CRAN, with numerous changes and enhancements
to Rcpp modules. The NEWS entry is
0.8.9 2010-11-27
o Many improvements were made to in 'Rcpp modules':
- exposing multiple constructors
- overloaded methods
- self-documentation of classes, methods, constructors, fields and
functions.
- new R function "populate" to facilitate working with modules in
packages.
- formal argument specification of functions.
- updated support for Rcpp.package.skeleton.
- constructors can now take many more arguments.
o The 'Rcpp-modules' vignette was updated as well and describe many
of the new features
o New template class Rcpp::SubMatrix<RTYPE> and support syntax in Matrix
to extract a submatrix:
NumericMatrix x = ... ;
// extract the first three columns
SubMatrix<REALSXP> y = x( _ , Range(0,2) ) ;
// extract the first three rows
SubMatrix<REALSXP> y = x( Range(0,2), _ ) ;
// extract the top 3x3 sub matrix
SubMatrix<REALSXP> y = x( Range(0,2), Range(0,2) ) ;
o Reference Classes no longer require a default constructor for
subclasses of C++ classes
o Consistently revert to using backticks rather than shell expansion
to compute library file location when building packages against Rcpp
on the default platforms; this has been applied to internal test
packages as well as CRAN/BioC packages using Rcpp
A blog post just went out, you'll see in soon at Planet R, Planet Debian, R
Bloggers as well as at http://dirk.eddelbuettel.com/blog/
Cheers, Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list