Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install the package in R (version 4.0.5) #9

Open
KSimi7 opened this issue Dec 1, 2022 · 3 comments
Open

Cannot install the package in R (version 4.0.5) #9

KSimi7 opened this issue Dec 1, 2022 · 3 comments

Comments

@KSimi7
Copy link

KSimi7 commented Dec 1, 2022

Tried both install_github and installing from the tar.gz file installation of package had non-zero exit status in both cases.

@hopehealey
Copy link

I had this same issue, I got the error that 1: packages ‘Matrix.utils’, ‘sparseMatrixStats’ are not available for this version of R

@hopehealey
Copy link

Hi @KSimi7 , I got it loaded! If you can't install matrix.utils and sparse matrix stats from their command, then you can install them from GitHub (remotes::install_github("const-ae/sparseMatrixStats") and remotes::install_github("cvarrichio/Matrix.utils"). I also had to change my compiler for R via these instructions https://medium.com/biosyntax/following-up-library-dependency-when-compiling-r-packages-89f191b9f227.

@yangRISC
Copy link
Collaborator

yangRISC commented Sep 8, 2023

Thanks for @hopehealey's solution. In RISC v1.16, we do not use Matrix.utils anymore, because of the stability of the package. About "sparseMatrixStats" (from its GitHub https://github.com/const-ae/sparseMatrixStats), it can work in R v4.0.5 (see below), the problem might be caused by C++ version. Sorry to make you inconvenient.

BiocManager::install("sparseMatrixStats")
But I still have a problems

Please make sure to carefully read the full problem section.
Make sure that you are using at least R 4.0.0.
Make sure your compiler is new enough to support C++14 (ie. gcc >= 4.9 and clang >= 3.4)
If your problems nonetheless persist, please file an issue including the following information:

Operating system with exact version (e.g. ‘Linux Ubuntu 18.04’)
Compiler and compiler version (e.g. ‘gcc version 7.2.5’)
The output of sessionInfo()
Information if you have a ~/.R/Makevars file and what it contains
The exact call that you use to install sparseMatrixStats including the full error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants