tidyverse installation error

Hello,
I am having trouble installing tidyverse (please see below) on RStudio. My Rstudio is mounted on a linux environment.

install.packages("tidyverse", dependencies = T)
Installing package into ‘/home/nishtals/R/x86_64-redhat-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rlang’, ‘ellipsis’, ‘forcats’, ‘haven’

trying URL 'https://cran.rstudio.com/src/contrib/rlang_0.4.0.tar.gz'
Content type 'application/x-gzip' length 859737 bytes (839 KB)
==================================================
downloaded 839 KB

trying URL 'https://cran.rstudio.com/src/contrib/ellipsis_0.2.0.1.tar.gz'
Content type 'application/x-gzip' length 7045 bytes
==================================================
downloaded 7045 bytes

trying URL 'https://cran.rstudio.com/src/contrib/forcats_0.4.0.tar.gz'
Content type 'application/x-gzip' length 255097 bytes (249 KB)
==================================================
downloaded 249 KB

trying URL 'https://cran.rstudio.com/src/contrib/haven_2.1.0.tar.gz'
Content type 'application/x-gzip' length 263276 bytes (257 KB)
==================================================
downloaded 257 KB

trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.2.1.tar.gz'
Content type 'application/x-gzip' length 61647 bytes (60 KB)
==================================================
downloaded 60 KB

ERROR: failed to lock directory ‘/home/nishtals/R/x86_64-redhat-linux-gnu-library/3.4’ for modifying
Try removing ‘/home/nishtals/R/x86_64-redhat-linux-gnu-library/3.4/00LOCK-rlang’
Warning in install.packages :
  installation of package ‘rlang’ had non-zero exit status
* installing *source* package ‘ellipsis’ ...
** package ‘ellipsis’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG   -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c dots.c -o dots.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG   -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c init.c -o init.o
gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -Wl,-z,relro -o ellipsis.so dots.o init.o -L/usr/lib64/R/lib -lR
installing to /home/nishtals/R/x86_64-redhat-linux-gnu-library/3.4/ellipsis/libs
** R
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘rlang’ 0.2.2 is being loaded, but >= 0.3.0 is required
ERROR: lazy loading failed for package ‘ellipsis’
* removing ‘/home/nishtals/R/x86_64-redhat-linux-gnu-library/3.4/ellipsis’
Warning in install.packages :
  installation of package ‘ellipsis’ had non-zero exit status
ERROR: dependency ‘ellipsis’ is not available for package ‘forcats’
* removing ‘/home/nishtals/R/x86_64-redhat-linux-gnu-library/3.4/forcats’
Warning in install.packages :
  installation of package ‘forcats’ had non-zero exit status
ERROR: dependency ‘forcats’ is not available for package ‘haven’
* removing ‘/home/nishtals/R/x86_64-redhat-linux-gnu-library/3.4/haven’
Warning in install.packages :
  installation of package ‘haven’ had non-zero exit status
ERROR: dependencies ‘forcats’, ‘haven’ are not available for package ‘tidyverse’
* removing ‘/home/nishtals/R/x86_64-redhat-linux-gnu-library/3.4/tidyverse’
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpL9Zw5y/downloaded_packages’

Have you tried deleting this file as suggested by the error message?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.