This is a test version of Biostars. For the public version, visit https://www.biostars.org.
failed to install harmony

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 answer

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.

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.

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")

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

Thanks for your help. I successfully inhaled the harmony.

Log in to answer this question.