# Installing Qiime2-r

**URL:** https://forum.qiime2.org/t/installing-qiime2-r/22918
**Category:** Library Support
**Tags:** qiime2-r
**Created:** [April 28, 2022, 2:47pm UTC](https://forum.qiime2.org/t/installing-qiime2-r/22918 "2022-04-28T14:47:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![annikamweber](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/8edcca/32.png) [@annikamweber](https://forum.qiime2.org/u/annikamweber)
#### Post date: [April 28, 2022, 2:47pm UTC](https://forum.qiime2.org/t/installing-qiime2-r/22918/1 "2022-04-28T14:47:46Z")

</div>

Hi @jbisanz could you help me with these error messages when trying to install QIIME2 R :

The downloaded binary packages are in  
C:\Users\annik\AppData\Local\Temp\RtmpYDWoRY\downloaded\_packages  
√ checking for file 'C:\Users\annik\AppData\Local\Temp\RtmpYDWoRY\remotes44b8100175e9\jbisanz-qiime2R-2a3cee1/DESCRIPTION' (628ms)

- preparing 'qiime2R':  
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories  
Omitted 'LazyData' from DESCRIPTION
- building 'qiime2R\_0.99.6.tar.gz'

Installing package into ‘C:/Users/annik/OneDrive - Colostate/Documents/R/win-library/4.1’  
(as ‘lib’ is unspecified)

- installing _source_ package 'qiime2R' ...  
\*\* using staged installation  
\*\* R  
\*\* inst  
\*\* byte-compile and prepare package for lazy loading  
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :  
namespace 'rlang' 1.0.0 is already loaded, but \>= 1.0.2 is required  
Calls: ... asNamespace -\> loadNamespace -\> namespaceImport -\> loadNamespace  
Execution halted  
ERROR: lazy loading failed for package 'qiime2R'
- removing 'C:/Users/annik/OneDrive - Colostate/Documents/R/win-library/4.1/qiime2R'  
Warning messages:  
1: In file.copy(savedcopy, lib, recursive = TRUE) :  
problem copying C:\Users\annik\OneDrive - Colostate\Documents\R\win-library\4.1\00LOCK\rlang\libs\x64\rlang.dll to C:\Users\annik\OneDrive - Colostate\Documents\R\win-library\4.1\rlang\libs\x64\rlang.dll: Permission denied  
2: In file.copy(savedcopy, lib, recursive = TRUE) :  
problem copying C:\Users\annik\OneDrive - Colostate\Documents\R\win-library\4.1\00LOCK\glue\libs\x64\glue.dll to C:\Users\annik\OneDrive - Colostate\Documents\R\win-library\4.1\glue\libs\x64\glue.dll: Permission denied  
3: In file.copy(savedcopy, lib, recursive = TRUE) :  
problem copying C:\Users\annik\OneDrive - Colostate\Documents\R\win-library\4.1\00LOCK\cli\libs\x64\cli.dll to C:\Users\annik\OneDrive - Colostate\Documents\R\win-library\4.1\cli\libs\x64\cli.dll: Permission denied  
4: In file.copy(savedcopy, lib, recursive = TRUE) :  
problem copying C:\Users\annik\OneDrive - Colostate\Documents\R\win-library\4.1\00LOCK\magrittr\libs\x64\magrittr.dll to C:\Users\annik\OneDrive - Colostate\Documents\R\win-library\4.1\magrittr\libs\x64\magrittr.dll: Permission denied  
5: In i.p(...) :  
installation of package ‘C:/Users/annik/AppData/Local/Temp/RtmpYDWoRY/file44b83a58271a/qiime2R\_0.99.6.tar.gz’ had non-zero exit status

Thank you! I think it is an issue with my OneDrive account, but I am not sure how to get around this.

---

<div class="post-metadata">

### Author: ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)
#### Post date: [April 28, 2022, 2:51pm UTC](https://forum.qiime2.org/t/installing-qiime2-r/22918/2 "2022-04-28T14:51:06Z")

</div>

Hello Annika,

Welcome to the forums! :qiime2:

As far as I can tell, you are installing these packages into a OneDrive folder... is that correct?

My guess is that the automatic sync functions of OneDrive are interfering with the R install. It's best to install software to a folder only on that computer, and use OneDrive to sync and share input data and output results, not all the temporary files and installed libraries needed by R.

---

<div class="post-metadata">

### Author: ![annikamweber](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/8edcca/32.png) [@annikamweber](https://forum.qiime2.org/u/annikamweber)
#### Post date: [May 2, 2022, 8:58pm UTC](https://forum.qiime2.org/t/installing-qiime2-r/22918/3 "2022-05-02T20:58:24Z")

</div>

Thank you @colinbrislawn that worked. I deletes R and reinstalled it out of OneDrive and used the local R as the default for package installations and it works now!

Thank you!
