I cannot install the dplyr package on Rstudio

Asked

Viewed 287 times

0

I cannot install the "dplyr" package in Rstudio. When I try the following warnings appear:

> install.packages("dplyr")

Installing package into C:/Users/Elisa/Desktop/Onedrive/Documents/R/win-library/3.4' (as ːlib' is unspecified) also Installing the dependencies ĩEllipsis', ĩ Pillar', ĩ Glue', ĩ Lifecycle', ễ rlang', ?Tibble', ĩ tidyselect', ?vctrs'

There are Binary versions available but the source versions are later: Binary source needs_compilation Ellipsis 0.1.0 0.3.1 TRUE Pillar 1.3.1 1.4.6 FALSE glue 1.3.1 1.4.2 TRUE rlang 0.3.4 0.4.8 TRUE Tibble 2.1.1 3.0.4 TRUE tidyselect 0.2.5 1.1.0 TRUE vctrs 0.1.0 0.3.4 TRUE dplyr 0.8.0.1 1.0.2 TRUE

Binaries will be installed trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/ellipsis_0.1.0.zip' Content type 'application/zip' length 30847 bytes (30 KB) downloaded 30 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/glue_1.3.1.zip' Content type 'application/zip' length 172415 bytes (168 KB) downloaded 168 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip' Content type 'application/zip' length 1080437 bytes (1.0 MB) downloaded 1.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/tibble_2.1.1.zip' Content type 'application/zip' length 238931 bytes (233 KB) downloaded 233 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/tidyselect_0.2.5.zip' Content type 'application/zip' length 625710 bytes (611 KB) downloaded 611 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/vctrs_0.1.0.zip' Content type 'application/zip' length 499748 bytes (488 KB) downloaded 488 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/dplyr_0.8.0.1.zip' Content type 'application/zip' length 3029353 bytes (2.9 MB) downloaded 2.9 MB

package ːEllipsis' successfully unpacked and MD5 sums checked package ːGlue' successfully unpacked and MD5 sums checked package ːrlang' successfully unpacked and MD5 sums checked package ːTibble' successfully unpacked and MD5 sums checked package ːtidyselect' successfully unpacked and MD5 sums checked package ːvctrs' successfully unpacked and MD5 sums checked package ːdplyr' successfully unpacked and MD5 sums checked

The downloaded Binary Packages are in C: Users Elisa Appdata Local Temp Rtmpwjodvm downloaded_packages Stalling the source

trying URL 'https://cran.rstudio.com/src/contrib/pillar_1.4.6.tar.gz' Content type 'application/x-gzip' length 113884 bytes (111 KB) downloaded 111 KB

trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_0.2.tar.gz' Content type 'application/x-gzip' length 164455 bytes (160 KB) downloaded 160 KB

  • stalling source package 'Lifecycle' ... ** package 'Lifecycle' successfully unpacked and MD5 sums checked ** R ** Inst ** Preparing package for Lazy loading Error in loadNamespace(i, c(lib.Loc, .libPaths()), versionCheck = vi[[i]]) : namespace 'rlang' 0.3.4 is being Loaded, but >= 0.4.0 is required ERROR: Lazy loading failed for package 'Lifecycle'
  • removing 'C:/Users/Elisa/Desktop/Onedrive/Documents/R/win-library/3.4/Lifecycle' Warning in install.Packages : running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C: Users Elisa Desktop Onedrive Documents R win-library 3.4" C: Users Elisa Appdata Local Temp Rtmpwjodvm/downloaded_packages/lifecycle_0.2.0.tar. gz' had status 1 Warning in install.Packages : installation of package ːLifecycle' had non-zero Exit status ERROR: dependency 'Lifecycle' is not available for package 'Pillar'
  • removing 'C:/Users/Elisa/Desktop/Onedrive/Documents/R/win-library/3.4/Pillar' Warning in install.Packages : running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C: Users Elisa Desktop Onedrive Documents R win-library 3.4" C: Users Elisa Appdata Local Temp Rtmpwjodvm/downloaded_packages/ar_1.4.6.tar. gz' had status 1 Warning in install.Packages : installation of package ːPillar' had non-zero Exit status

The downloaded source Packages are in ːC: Users Elisa Appdata Local Temp Rtmpwjodvm downloaded_packages'

> library(dplyr)

Error: package or namespace load failed for +dplyr' in loadNamespace(j <- i[[[1L]], c(lib.Loc, .libPaths()), versionCheck = vi[[j]]): there is no package called ːPillar' In addition: Warning message: package ːdplyr' was built under R version 3.4.4

I had read on github that this problem could be related to the library and the way the files go or to some lock made by my antivirus. However, after trying to disable antivirus and change the address of the library, it keeps popping up the same error.

Someone’s had this problem and can tell me what to do?

1 answer

0

I solved it! Apparently, I had installed different versions of R and Rstudio and probably this was preventing me from installing the packages properly. Also, about the problems with the "library", I discovered that, on my computer, it had been directed to my folders on One drive. After updating the R and Rstudio versions, making them compatible, and modifying the location of the Rstudio library folders, I was able to install and run the "dplyr package".

Browser other questions tagged

You are not signed in. Login or sign up in order to post.