Error with installation of qiime2R

Hi,
I’d like to ask for some help in installing qiime2r. I’m a bit beginner in using R, hope someone can help me figure out what to do. Thanks!

I’m following the command below:

if (!requireNamespace(“devtools”, quietly = TRUE)){install.packages(“devtools”)}
devtools::install_github(“jbisanz/qiime2R”) # current version is 0.99.20
library(qiime2R)

if (!requireNamespace(“devtools”, quietly = TRUE)){install.packages(“devtools”)}
Error in install.packages : Updating loaded packages

Restarting R session…

install.packages(“devtools”)
Error in install.packages : Updating loaded packages

Restarting R session…

install.packages(“devtools”)
Error in install.packages : Updating loaded packages
install.packages(“devtools”)
Installing package into ‘C:/Users/Adria Eda/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘glue’, ‘rlang’

trying URL ‘https://cran.rstudio.com/bin/windows/contrib/3.6/glue_1.4.0.zip
Content type ‘application/zip’ length 157866 bytes (154 KB)
downloaded 154 KB

trying URL ‘https://cran.rstudio.com/bin/windows/contrib/3.6/rlang_0.4.5.zip
Content type ‘application/zip’ length 1128415 bytes (1.1 MB)
downloaded 1.1 MB

trying URL ‘https://cran.rstudio.com/bin/windows/contrib/3.6/devtools_2.3.0.zip
Content type ‘application/zip’ length 351232 bytes (343 KB)
downloaded 343 KB

package ‘glue’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘glue’
Warning in install.packages :
problem copying C:\Users\Adria Eda\R\win-library\3.6\00LOCK\glue\libs\x64\glue.dll to C:\Users\Adria Eda\R\win-library\3.6\glue\libs\x64\glue.dll: Permission denied
Warning in install.packages :
restored ‘glue’
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘rlang’
Warning in install.packages :
problem copying C:\Users\Adria Eda\R\win-library\3.6\00LOCK\rlang\libs\x64\rlang.dll to C:\Users\Adria Eda\R\win-library\3.6\rlang\libs\x64\rlang.dll: Permission denied
Warning in install.packages :
restored ‘rlang’
package ‘devtools’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Adria Eda\AppData\Local\Temp\RtmpA9Ws42\downloaded_packages

That is quite a pickle. My first guess is that it is a permissions issue, is this your personal computer? Can you post the output of sessionInfo() in R?

Hi! I figured it out and successfully installed qiime2r just now :slight_smile: … I had to literally delete rlang and glue packages from my files to allow updates or reinstallation.

Thank you for getting back to me.

Stay safe!

1 Like