I can’t install the dplyr package on RStudio

I can’t install the “dplyr” package on RStudio. When I try, the following warnings appear:

> install.packages("dplyr")

Installing package into ‘C:/Users/elisa/Desktop/OneDrive/Documentos/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:UserselisaAppDataLocalTempRtmpwjoDVmdownloaded_packages
installing the source packages ‘pillar’,’lifecycle ‘

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.0.tar.gz’
Content type ‘application / x-gzip’ length 164455 bytes (160 KB)
downloaded 160 KB

  • installing source package ‘lifecycle’…
    ** package ‘lifecycle’ successfully unpacked and MD5 sums checked
    ** R
    ** inst
    ** preparing package for lazy loading
    Error in loadNamespace (I, C(lib.place, .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/Documentos/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:UserselisaDesktopOneDriveDocumentosRwin-library3.4” C:UserselisaAppDataLocalTempRtmpwjoDVm/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/Documentos/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:UserselisaDesktopOneDriveDocumentosRwin-library3.4” C:UserselisaAppDataLocalTempRtmpwjoDVm/downloaded_packages/pillar_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:UserselisaAppDataLocalTempRtmpwjoDVmdownloaded_packages ‘

> library(dplyr)

Error: package or namespace load failed for ‘ dplyr’ in loadNamespace (j

I had read on github that this problem could be related to the library and the path that the files do or some blocking done by my antivirus. However, after trying to disable the antivirus and change the library address, the same error continues to appear.

Has anyone had this problem and can tell me what to do?

Read more here: Source link