# Cannot install qiime2R on R version 3.6.1

**URL:** <https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593>\
**Category:** Library Support\
**Created:** [September 19, 2019, 5:16pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593 "2019-09-19T17:16:59Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![AgataMl](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/59ef9b/32.png) [@AgataMl](https://forum.qiime2.org/u/AgataMl)\
**Post date:** [September 19, 2019, 5:16pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/1 "2019-09-19T17:16:59Z")

</div>

Hi all!

I have a problem with qiime2R installation in R studio with R version 3.6.1.

Here is the code I've used:

> install.packages("devtools")  
> devtools::install\_github("jbisanz/qiime2R")

Devtools were installed correctly but I have a problem with second command which which gives me this error:

> Error: (converted from warning) Setting LC\_CTYPE failed, using "C"  
> Execution halted  
> Error: Failed to install 'qiime2R' from GitHub:  
> (converted from warning) installation of package '/var/folders/7y/3bk0drr50qq6dmdb4hr3gwv40000gn/T//RtmpI7EjxB/file198a4cfab921/qiime2R\_0.99.12.tar.gz' had non-zero exit status

Any idea, how I can solve this problem?

Best,  
Agata

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [September 19, 2019, 5:17pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/2 "2019-09-19T17:17:13Z")

</div>



---

<div class="post-metadata">

**Author:** ![jbisanz](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jbisanz/32/1720_2.png) [@jbisanz](https://forum.qiime2.org/u/jbisanz)\
**Post date:** [September 19, 2019, 5:23pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/3 "2019-09-19T17:23:29Z")

</div>

Hi Agata,

This appears to be an issue with R perhaps relating to settings for language. Which operating system are you using? This might help: [macos - Installing R on Mac - Warning messages: Setting LC\_CTYPE failed, using "C" - Stack Overflow](https://stackoverflow.com/questions/9689104/installing-r-on-mac-warning-messages-setting-lc-ctype-failed-using-c).

Jordan

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [September 19, 2019, 5:26pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/4 "2019-09-19T17:26:28Z")

</div>



---

<div class="post-metadata">

**Author:** ![AgataMl](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/59ef9b/32.png) [@AgataMl](https://forum.qiime2.org/u/AgataMl)\
**Post date:** [September 19, 2019, 5:41pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/5 "2019-09-19T17:41:22Z")

</div>

Yes, that helped!

Thank you, Best, Agata

---

<div class="post-metadata">

**Author:** ![11132](https://forum.qiime2.org/user_avatar/forum.qiime2.org/11132/32/8508_2.png) [@11132](https://forum.qiime2.org/u/11132)\
**Post date:** [July 8, 2020, 2:02pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/6 "2020-07-08T14:02:32Z")

</div>

Hi Jbisanz,

I met the same problem.

` download.file("[https://github.com/jbisanz/qiime2R/archive/master.zip](https://github.com/jbisanz/qiime2R/archive/master.zip)", "source.zip")  
trying URL '[https://github.com/jbisanz/qiime2R/archive/master.zip](https://github.com/jbisanz/qiime2R/archive/master.zip)'  
Content type 'application/zip' length 2751675 bytes (2.6 MB)  
downloaded 2.6 MB

> unzip("source.zip")  
> install.packages("qiime2R-master", repos = NULL, type="source",dependencies = TRUE)  
> Installing package into ‘\freja/homedir$/yundum/Documents/R/win-library/3.6’  
> (as ‘lib’ is unspecified)

- installing _source_ package 'qiime2R' ...  
\*\* using staged installation  
Warning in as.POSIXlt.POSIXct(x, tz) : unknown timezone 'GMT'  
\*\* R  
\*\* inst  
Warning in file.create(to[okay]) :  
cannot create file '\freja/homedir$/yundum/Documents/R/win-library/3.6/00LOCK-qiime2R-master/00new/qiime2R/CITATION', reason 'No such file or directory'  
Warning in file.create(to[okay]) :  
cannot create file '\freja/homedir$/yundum/Documents/R/win-library/3.6/00LOCK-qiime2R-master/00new/qiime2R/NEWS', reason 'No such file or directory'  
\*\* byte-compile and prepare package for lazy loading  
Error in findpack(package, lib.loc) :  
there is no package called 'qiime2R'  
Calls: -\> findpack  
Execution halted  
ERROR: lazy loading failed for package 'qiime2R'
- removing '\freja/homedir$/yundum/Documents/R/win-library/3.6/qiime2R'  
Warning in install.packages :  
installation of package ‘qiime2R-master’ had non-zero exit status`The R version info is as below`\> version  
\_  
platform x86\_64-w64-mingw32  
arch x86\_64  
os mingw32  
system x86\_64, mingw32  
status  
major 3  
minor 6.1  
year 2019  
month 07  
day 05  
svn rev 76782  
language R  
version.string R version 3.6.1 (2019-07-05)'

---

<div class="post-metadata">

**Author:** ![jbisanz](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jbisanz/32/1720_2.png) [@jbisanz](https://forum.qiime2.org/u/jbisanz)\
**Post date:** [July 8, 2020, 2:16pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/7 "2020-07-08T14:16:06Z")

</div>

I think your problem is distinct. Try erasing \freja/homedir$/yundum/Documents/R/win-library/3.6/00LOCK-qiime2R-master/ if it exists and reinstall using devtools::install\_github if possible.

---

<div class="post-metadata">

**Author:** ![siuguy](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/b9bd4f/32.png) [@siuguy](https://forum.qiime2.org/u/siuguy)\
**Post date:** [August 28, 2020, 3:30pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/8 "2020-08-28T15:30:29Z")

</div>

> [@jbisanz](#):
>
> [d-using-c](https://stackoverflow.com/questions/9689104/installing-r-on-mac-warning-messages-setting-lc-ctype-failed-using-c).

Hi Jordan,

I am also having problems installing qiime2R. Could you help me, please?

> library (devtools)  
> Loading required package: usethis  
> options(download.file.method = "libcurl")  
> if (!requireNamespace("devtools", quietly = TRUE)){install.packages("devtools")}  
> devtools::install\_github("jbisanz/qiime2R")  
> Downloading GitHub repo jbisanz/qiime2R@HEAD  
> √ checking for file 'C:\Users\Administrator\AppData\Local\Temp\RtmpG8qhBc\remotes45606cff70b2\jbisanz-qiime2R-2db460b/DESCRIPTION' (433ms)

- 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
- building 'qiime2R\_0.99.34.tar.gz'

- installing _source_ package 'qiime2R' ...  
\*\* using staged installation  
\*\* R  
\*\* inst  
\*\* byte-compile and prepare package for lazy loading  
Error in inDL(x, as.logical(local), as.logical(now), ...) :  
unable to load shared object 'C:/Program Files/R/R-4.0.0/library/Rcpp/libs/x64/Rcpp.dll':  
LoadLibrary failure: The specified procedure could not be found.  
Calls: ... asNamespace -\> loadNamespace -\> library.dynam -\> dyn.load -\> inDL  
Execution halted  
ERROR: lazy loading failed for package 'qiime2R'
- removing 'C:/Program Files/R/R-4.0.0/library/qiime2R'  
Error: Failed to install 'qiime2R' from GitHub:  
(converted from warning) installation of package ‘C:/Users/ADMINI~1/AppData/Local/Temp/RtmpG8qhBc/file456021ee433f/qiime2R\_0.99.34.tar.gz’ had non-zero exit status

---

<div class="post-metadata">

**Author:** ![jbisanz](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jbisanz/32/1720_2.png) [@jbisanz](https://forum.qiime2.org/u/jbisanz)\
**Post date:** [August 28, 2020, 8:01pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/9 "2020-08-28T20:01:28Z")

</div>

> [@siuguy](#):
>
> Error in inDL(x, as.logical(local), as.logical(now), …) :  
> unable to load shared object ‘C:/Program Files/R/R-4.0.0/library/Rcpp/libs/x64/Rcpp.dll’:

I suspect your problem is related to Rcpp. Try reinstalling it and then try to install qiime2R.

---

<div class="post-metadata">

**Author:** ![siuguy](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/b9bd4f/32.png) [@siuguy](https://forum.qiime2.org/u/siuguy)\
**Post date:** [August 31, 2020, 3:00pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/10 "2020-08-31T15:00:03Z")

</div>

Thanks, Jordan. It was a problem with Rcpp. After updating it, it worked like a charm.  
Leo

---

<div class="post-metadata">

**Author:** ![eraysahin](https://forum.qiime2.org/user_avatar/forum.qiime2.org/eraysahin/32/17818_2.png) [@eraysahin](https://forum.qiime2.org/u/eraysahin)\
**Post date:** [October 15, 2020, 10:31am UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/11 "2020-10-15T10:31:45Z")

</div>

Hi Jordan (@jbisanz)

I am facing an error while installing, can you also guide me how to solve the issue;

> if (!requireNamespace("devtools", quietly = TRUE)){install.packages("devtools")}  
> devtools::install\_github("jbisanz/qiime2R")  
> Downloading GitHub repo jbisanz/qiime2R@HEAD  
> √ checking for file 'C:\Users\DELL 5530\AppData\Local\Temp\Rtmp0aUZPV\remotesd847c7fa6f\jbisanz-qiime2R-2db460b/DESCRIPTION' ...

- 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
- building 'qiime2R\_0.99.34.tar.gz'

Installing package into ‘C:/Users/DELL 5530/Documents/R/win-library/3.6’  
(as ‘lib’ is unspecified)

- installing _source_ package 'qiime2R' ...  
\*\* using staged installation  
\*\* R  
\*\* inst  
\*\* byte-compile and prepare package for lazy loading  
Fatal error: cannot open file 'C:\Users\DELL': No such file or directory

ERROR: lazy loading failed for package 'qiime2R'

- removing 'C:/Users/DELL 5530/Documents/R/win-library/3.6/qiime2R'  
Error: Failed to install 'qiime2R' from GitHub:  
(converted from warning) installation of package ‘C:/Users/DELL 5530/AppData/Local/Temp/Rtmp0aUZPV/filed8416327b3a/qiime2R\_0.99.34.tar.gz’ had non-zero exit status

Thank you,

Best,

Eray

---

<div class="post-metadata">

**Author:** ![jbisanz](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jbisanz/32/1720_2.png) [@jbisanz](https://forum.qiime2.org/u/jbisanz)\
**Post date:** [October 15, 2020, 5:39pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/12 "2020-10-15T17:39:11Z")

</div>

Strange, I think it is because there is a space in the path to your lib and you are using windows (C:/Users/DELL 5530/Documents/R/win-library/3.6). Possible fixes:  
1- try updating to the latest version of devtools  
2-download source, and install as I posted [here](https://forum.qiime2.org/t/problems-installing-qiime2r/11999/4). You may need to manually install the dependencies.  
3-move your R libraries to a new directory which avoids 'DELL 5530'

---

<div class="post-metadata">

**Author:** ![eraysahin](https://forum.qiime2.org/user_avatar/forum.qiime2.org/eraysahin/32/17818_2.png) [@eraysahin](https://forum.qiime2.org/u/eraysahin)\
**Post date:** [October 16, 2020, 7:38pm UTC](https://forum.qiime2.org/t/cannot-install-qiime2r-on-r-version-3-6-1/11593/13 "2020-10-16T19:38:24Z")

</div>

Dear Jordan,

The problem is arisen from the space as you indicated.

Thank you for your time and help.

Best regards,

Eray
