immunogenomics / harmony

Fast, sensitive and accurate integration of single-cell data with Harmony
https://portals.broadinstitute.org/harmony/
Other
526 stars 100 forks source link

Installation issues #226

Closed ayyildizd closed 10 months ago

ayyildizd commented 11 months ago

Hi` I have Mac M2 chip, I am having issues to downgrade my harmony.

See below (Many thanks!!)

url<-"https://cran.r-project.org/src/contrib/Archive/harmony/harmony_1.1.0.tar.gz"
install.packages(url, repos=NULL, type="source", force=T)

trying URL 'https://cran.r-project.org/src/contrib/Archive/harmony/harmony_1.1.0.tar.gz'
Content type 'application/x-gzip' length 5193579 bytes (5.0 MB)
==================================================
downloaded 5.0 MB

* installing *source* package ‘harmony’ ...
** package ‘harmony’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
sh: make: command not found
Warning in system(cmd) : error in running command
ERROR: compilation failed for package ‘harmony’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/harmony’
sh: rm: command not found
Warning in install.packages :
  installation of package ‘/var/folders/h7/xnzlbrh14pl7lptl4ldbpptr0000gn/T//Rtmpp4qSau/downloaded_packages/harmony_1.1.0.tar.gz’ had non-zero exit status

sessionInfo()
R version 4.2.3 (2023-03-15)
Platform: x86_64-apple-darwin17.0 (64-bit)

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.2.3    tools_4.2.3       rstudioapi_0.15.0
pati-ni commented 11 months ago

Looks like rm is not detected. 😬

Have you tried to just install.packages("harmony")…?

Alternatively, can you please try to install from github using devtools::install_github("immunogenomics/harmony") the remotes equivalent?

ayyildizd commented 10 months ago

Thanks for reply. install.packages("harmony") works but it installs version 1.2.0 and I want to have version 1.1.0 devtools::install_github("immunogenomics/harmony") this one installs very old version 0.1.1

In the end I installed harmony version 1.1.0 with R from terminal (not Rstudio). From Rstudio the compilation was failing.