[Rd] scale.default gives an incorrect error message when is.numeric() fails on a sparse row matrix (dgeMatrix)

2018-02-27 Thread Michael Chirico
I am attempting to use the lars package with a sparse input feature matrix, but the following fails: library(Matrix) library(lars) data(diabetes) attach(diabetes) x = as(as.matrix(as.data.frame(x)), 'dgCMatrix') lars(x, y, intercept = FALSE) Error in scale.default(x, FALSE, normx) : > > length

Re: [Rd] R-devel Digest, Vol 180, Issue 24

2018-02-27 Thread Georgi Boshnakov
I didn't find the development version of your package but the latest version archived on CRAN uses Rcpp, RcppArmadillo. Since the latest versions of Rcpp and Armadillo support registration, it may be something related to RcppAttributes() or similar. I think that you don't need to do registration

Re: [Rd] Problem with R_registerRoutines

2018-02-27 Thread Georgi Boshnakov
Sorry, resending with correct subject line. I didn't find the development version of your package but the latest version archived on CRAN uses Rcpp, RcppArmadillo. Since the latest versions of Rcpp and Armadillo support registration, it may be something related to RcppAttributes() or similar. I