david-cortes / MatrixExtra

(R) Efficient methods and operators for the sparse matrix classes in 'Matrix' (esp. CSR format or "RsparseMatrix")
https://cran.r-project.org/package=MatrixExtra
GNU General Public License v3.0
19 stars 3 forks source link

Installation failure: matmul.cpp:137:41: error: ‘ldc’ is predetermined ‘shared’ for ‘shared’ / private(write_ptr, temp_arr) #3

Closed dwinsemius closed 2 years ago

dwinsemius commented 2 years ago

First tried to install MatrixExtra from within RSudio on a newly updated R. Started by reinstalling all the Imports packages without problems. Then went to Terminal:

After $R CMD INSTALL ~/MatrixExtra_0.1.9.tar.gz on an Ubuntu 18.04 box I get:

david@davids:/usr/lib/R$ R CMD INSTALL ~/MatrixExtra_0.1.9.tar.gz

david@davids:/usr/lib/R$ R --version R version 4.1.2 (2021-11-01) -- "Bird Hippie" Copyright (C) 2021 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)

david-cortes commented 2 years ago

Thanks for the bug report. This is already solved in the master branch and the new version should get accepted at CRAN soon. In the meantime, you can install it like this:

remotes::install_github("david-cortes/MatrixExtra")