failed to install harmony
1
0
Entering edit mode
2.0 years ago
sandy • 0

Hello everyone,

I am trying to install harmony, but I failed. I already installed Seurat, however, I use library (harmony), this is what R said:

>library(harmony)
Error in library(harmony) : there is no package called ‘harmony’

I wonder how to solve this problem. Thank you.

My r version is 4.2.1.

harmony R • 1.7k views
ADD COMMENT
0
Entering edit mode
2.0 years ago
Mensur Dlakic ★ 28k

The error message tells us that you don't have harmony installed, but nothing about what you did to install it or why it failed. What was the error message during installation? The installation process is described here.

ADD COMMENT
0
Entering edit mode

The system said this: Warning message: package ‘harmony’ is not available for this version of R

A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

But in fact, I already tried 2 different version of R to stall. 4.0 and 4.2.

ADD REPLY
0
Entering edit mode

I used install.packages("harmony").

I also tried: if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("harmony", version = "3.8").

Both of them nor working.

ADD REPLY
0
Entering edit mode

Don't you see how much easier it is to give advice when you provide enough information?

Since there is no package available for your R version, you may want to try installing from source. People who are more versed in R may be able to offer a different solution.

library(devtools)
install_github("immunogenomics/harmony")
ADD REPLY
0
Entering edit mode

Thanks for your help. Why I failed to install dev tools in my R? or I do not need to install dev tools?

ADD REPLY
0
Entering edit mode

Thanks for your help. I successfully inhaled the harmony.

ADD REPLY

Login before adding your answer.

Traffic: 1331 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6