stefpeschel / NetCoMi

Network construction, analysis, and comparison for microbial compositional data
GNU General Public License v3.0
146 stars 26 forks source link

problems about installation #75

Closed YuT95 closed 1 year ago

YuT95 commented 1 year ago

Hi I am not able to install NetCoMi in R studio with mac. the errors are as follows. I have tried all the answers under the issues but it didn't work. thanks!

Error: Failed to install 'NetCoMi' from GitHub: ! System command 'R' failed In addition: Warning messages: 1: In i.p(...) : installation of package ‘/var/folders/wx/xprxkc2j53j4qqfk46d5cy300000gn/T//Rtmp332LmE/filee78e3eb63f10/SpiecEasi_1.1.2.tar.gz’ had non-zero exit status 2: In i.p(...) : installation of package ‘/var/folders/wx/xprxkc2j53j4qqfk46d5cy300000gn/T//Rtmp332LmE/filee78e41a66039/mixedCCA_1.6.2.tar.gz’ had non-zero exit status 3: In i.p(...) : installation of package ‘/var/folders/wx/xprxkc2j53j4qqfk46d5cy300000gn/T//Rtmp332LmE/filee78e3a80d0a9/SPRING_1.0.4.tar.gz’ had non-zero exit status

stefpeschel commented 1 year ago

Hi @YuT95. Apparently, the three packages SpiecEasi, SPRING, and mixedCCA cannot be installed automatically because they are only available on GitHub. Please install them manually in advance with:

devtools::install_github("zdk123/SpiecEasi")
devtools::install_github("irinagain/mixedCCA")
devtools::install_github("GraceYoon/SPRING")

The order is important because SPRING depends on mixedCCA and SpiecEasi.

YuT95 commented 1 year ago

Hi Stefanie, Thanks for your reply. but when I run it, errors are as follows:

R version 4.2.2 (2022-10-31) -- "Innocent and Trusting" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: aarch64-apple-darwin20 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

library(devtools) Loading required package: usethis devtools::install_github("zdk123/SpiecEasi") Downloading GitHub repo @.*** ✔ checking for file ‘/private/var/folders/wx/xprxkc2j53j4qqfk46d5cy300000gn/T/RtmpdVzYNU/remotesd01e75318fc0/zdk123-SpiecEasi-41448ad/DESCRIPTION’ ... ─ preparing ‘SpiecEasi’: ✔ checking DESCRIPTION meta-information ... ─ cleaning src ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories Removed empty directory ‘SpiecEasi/inst’ ─ looking to see if a ‘data/datalist’ file should be added ─ building ‘SpiecEasi_1.1.2.tar.gz’

At 2022-11-22 16:11:41, "Stefanie Peschel" @.***> wrote:

Hi @YuT95. Apparently, the three packages SpiecEasi, SPRING, and mixedCCA cannot be installed automatically because they are only available on GitHub. Please install them manually in advance with:

devtools::install_github("zdk123/SpiecEasi") devtools::install_github("irinagain/mixedCCA") devtools::install_github("GraceYoon/SPRING")

The order is important because SPRING depends on mixedCCA and SpiecEasi.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

stefpeschel commented 1 year ago

Sorry, I forgot that mixedCCA is available on CRAN as well. So please install the package from CRAN as first step: install.packages("mixedCCA")

Then, install SpiecEasi: devtools::install_github("zdk123/SpiecEasi") and SPRING as last step: devtools::install_github("GraceYoon/SPRING")

I assume it's a general problem with installing packages from GitHub on Mac. Please ensure that you're using the latest devtools version.

YuT95 commented 1 year ago

Hi, sorry it still didn't work...

install.packages("devtools") Error in install.packages : Updating loaded packages

Restarting R session...

install.packages("devtools") trying URL 'https://mirrors.ustc.edu.cn/CRAN/bin/macosx/big-sur-arm64/contrib/4.2/devtools_2.4.5.tgz' Content type 'application/octet-stream' length 421790 bytes (411 KB)

downloaded 411 KB

The downloaded binary packages are in /var/folders/wx/xprxkc2j53j4qqfk46d5cy300000gn/T//RtmprtWFa8/downloaded_packages

update.packages("devtools") install.packages("mixedCCA") trying URL 'https://mirrors.ustc.edu.cn/CRAN/bin/macosx/big-sur-arm64/contrib/4.2/mixedCCA_1.6.2.tgz' Content type 'application/octet-stream' length 538272 bytes (525 KB)

downloaded 525 KB

The downloaded binary packages are in /var/folders/wx/xprxkc2j53j4qqfk46d5cy300000gn/T//RtmprtWFa8/downloaded_packages

library("devtools") Loading required package: usethis devtools::install_github("zdk123/SpiecEasi") Downloading GitHub repo @.*** ✔ checking for file ‘/private/var/folders/wx/xprxkc2j53j4qqfk46d5cy300000gn/T/RtmprtWFa8/remotes176ec3a3ab971/zdk123-SpiecEasi-41448ad/DESCRIPTION’ ... ─ preparing ‘SpiecEasi’: ✔ checking DESCRIPTION meta-information ... ─ cleaning src ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories Removed empty directory ‘SpiecEasi/inst’ ─ looking to see if a ‘data/datalist’ file should be added ─ building ‘SpiecEasi_1.1.2.tar.gz’

At 2022-11-22 17:52:21, "Stefanie Peschel" @.***> wrote:

Sorry, I forgot that mixedCCA is available on CRAN as well. So please install the package from CRAN as first step: install.packages("mixedCCA")

Then, install SpiecEasi: devtools::install_github("zdk123/SpiecEasi") and SPRING as last step: devtools::install_github("GraceYoon/SPRING")

I assume it's a general problem with installing packages from GitHub on Mac. Please ensure that you're using the latest devtools version.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

stefpeschel commented 1 year ago

There is already an open issue for SpiecEasi: https://github.com/zdk123/SpiecEasi/issues/225. This seems to be the same error you get. You could maybe comment that you have the same issue.

I'm really sorry but this issue is not directly NetCoMi related and I don't know how to solve it either.

daydream-boost commented 1 year ago

Hi, @YuT95 You can use conda/mamba to install NetCoMi easily on MacOS.