[Rcpp-devel] [Pre-ANN] RcppArmadillo, and request for help

Dirk Eddelbuettel edd at debian.org
Sun Oct 8 00:15:48 CEST 2017

RcppArmadillo is available in the drat repo for the RcppCore org.
See the README.md at https://github.com/RcppCore/drat which has this exammple:

   # first add the repo
   # either install just one or more given packages
   # or update already installed packages

You can also add the repo URL by hand to options("repos"), or supply it to
install.packages(), or ...  I happen to like drat. The files NEWS.Rd and
ChangeLog have the goods, I make a fuller announcement if and when it makes
it to CRAN.

There are a rathre fair number of upstream changes in here -- making it the
first Armadillo release by Conrad with an 8.* number.  It also has further
sparse matrix improvements from our end thanks to Serguei and Binxiang.

I had uploaded this to CRAN based on a reverse depends check ... where the
previous version was still in the loadpath. Ooops. So I overlooked a few
build or test errors for which I need a bit of help from the maintainers.  In
particular, packages


now come up as failing their tests.  I am BCCing the maintainers and kindly
ask if they could take a look too --- I don't always have all suggested
packages installed.

In the case of HSAR, I found that a one life of code needs a changed imposed
by Conrad as the sparse-to-dense conversion no longer works with with a
copy. This patch covers it:

diff -ru HSAR.orig/src/diagnostics.cpp HSAR/src/diagnostics.cpp
--- HSAR.orig/src/diagnostics.cpp	2016-05-24 13:58:45.000000000 -0500
+++ HSAR/src/diagnostics.cpp	2017-10-07 13:24:31.471883248 -0500
@@ -10,7 +10,7 @@
   sp_mat SW = I_sp+rho*W+pow(rho,2)*(W*W)+pow(rho,3)*(W*W*W)+pow(rho,4)*(W*W*W*W)+pow(rho,5)*(W*W*W*W*W);
-  vec d = SW.diag();
+  vec d(SW.diag());
   direct  = sum( d )/n * betas ;
   total  = accu( SW )/n * betas ;

For the other packages, I had less luck as the failures are generally in the
tests and often require packages I have not installed (here at home, and for
technical I don't currently have access to the machine where I usually run
the tests).

Sp I would be grateful if the maintainers of packages

   biglasso, bigstatsr, netdiffuseR, repolr

(or also any interested volunteers) could take a peek.   It seems of the now
over 400 CRAN package using RcppArmadillo, all others are fine too -- and I
suspect these four also need only small and simple changes.  Happy to discuss

Cheers, Dirk

http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org

More information about the Rcpp-devel mailing list