[Rcpp-devel] [RC] Rcpp 0.11.1 release candidate at GitHub

Søren Højsgaard sorenh at math.aau.dk
Sun Mar 9 20:55:22 CET 2014


This may be a bug?? 

Selecting a column from a CharacterMatrix with x( _, j) fails (gives compiler error), but it works on a NumericMatrix. See the example below.

Cheers
Søren

#include <Rcpp.h>
using namespace Rcpp;
//[[Rcpp::export]]
void foo_num (NumericMatrix x){
  NumericVector v;
  for (int j=0; j<x.ncol(); ++j){
    v = x( _, j); 
    Rf_PrintValue( v );
  }
}
//[[Rcpp::export]]
void foo_chr (CharacterMatrix x){
  CharacterVector v;
  for (int j=0; j<x.ncol(); ++j){
    v = x( _, j); 
    Rf_PrintValue( v );
  }
}


/*** R
m1 <- matrix(1:9, nrow=3)
foo_num( m1 )

m2 <- matrix(letters[1:9], nrow=3)
foo_chr( m2 )
 */







-----Original Message-----
From: rcpp-devel-bounces at lists.r-forge.r-project.org [mailto:rcpp-devel-bounces at lists.r-forge.r-project.org] On Behalf Of Dirk Eddelbuettel
Sent: 9. marts 2014 16:21
To: rcpp-devel
Subject: [Rcpp-devel] [RC] Rcpp 0.11.1 release candidate at GitHub


The current GitHub version [1] (currently labelled 0.11.0.3) should go 'soon'
to CRAN.  It is ready -- special thanks once again to Kevin for a number of fixes to make this happen; JJ and Romain also chipped in with other fixes and improvements.

Rcpp currently has 183 reverse depends on CRAN. I skipped four on purpose. Of the 179 tested, a full 176 pass R CMD check --as-cran without issues (see [2] for details).  The test scripts and logs are all available in a repo. [3]

If you have a package somewhere in a non-public repo, today would be a great day to test :)  The last time around we learned about a bug / regression the day after the 0.11.0 release --- and we would rather avoid a repeat of that.

If you could run a local test, please do.  Just update to the GitHub version, and test your package.  If something comes up, please report it here, ideally with something reproducible.

Thanks!

On behalf of Rcpp Core,  Dirk


[1] https://github.com/RcppCore/Rcpp
[2] https://github.com/RcppCore/rcpp-logs/blob/master/status/status-20140309.txt
[3] https://github.com/RcppCore/rcpp-logs

--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com _______________________________________________
Rcpp-devel mailing list
Rcpp-devel at lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel


More information about the Rcpp-devel mailing list