qiime2R icon indicating copy to clipboard operation
qiime2R copied to clipboard

error with installing qiime2R

Open mjbug opened this issue 1 year ago • 4 comments

Hello. I've tried installing qiime2R in the following ways

install.packages("remotes")
library(remotes)
remotes::install_github("jbisanz/qiime2R")
if (!requireNamespace("devtools", quietly = TRUE)){install.packages("devtools")}
library(devtools)
devtools::install_github("jbisanz/qiime2R") 

Both ways received the same error

Downloading GitHub repo jbisanz/qiime2R@HEAD
Error: Failed to install 'qiime2R' from GitHub:
  'from' must be of length 1

What does this error mean and how else should I try installing qiime2R?

Thank you.

mjbug avatar Jul 07 '23 20:07 mjbug

Could you post your session info? You could also try installing from source:

#see here for more info https://forum.qiime2.org/t/problems-installing-qiime2r/11999/6
download.file("https://github.com/jbisanz/qiime2R/archive/master.zip", "source.zip")
unzip("source.zip")
install.packages("qiime2R-master", repos = NULL, type="source")

jbisanz avatar Jul 07 '23 20:07 jbisanz

Here is my session info

R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

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

other attached packages:
[1] remotes_2.4.2

loaded via a namespace (and not attached):
[1] compiler_4.2.3  tools_4.2.3     rstudioapi_0.14 curl_5.0.1

mjbug avatar Jul 07 '23 20:07 mjbug

Just tried your previous suggestion

download.file("https://github.com/jbisanz/qiime2R/archive/master.zip", "source.zip")
unzip("source.zip")
install.packages("qiime2R-master", repos = NULL, type="source")

and received this error

ERROR: dependencies 'Biostrings', 'rhdf5', 'zCompositions', 'phyloseq' are not available for package 'qiime2R'
* removing 'C:/Users/bugsj/AppData/Local/R/win-library/4.2/qiime2R'
Warning in install.packages :
  installation of package ‘qiime2R-master’ had non-zero exit status

Should I download the above dependencies and re-try?

mjbug avatar Jul 07 '23 20:07 mjbug

Yes, when in doubt, manually install the dependencies. Not sure why you would have this problem, could be something about where they are being installed on windows.

jbisanz avatar Sep 29 '23 01:09 jbisanz