Não consigo instalar o pacote "dplyr" no RStudio. Quando tento, aparecem os seguintes avisos:
> 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:\Users\elisa\AppData\Local\Temp\RtmpwjoDVm\downloaded_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.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/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:\Users\elisa\Desktop\OneDrive\Documentos\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/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:\Users\elisa\Desktop\OneDrive\Documentos\R\win-library\3.4" C:\Users\elisa\AppData\Local\Temp\RtmpwjoDVm/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:\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
Eu havia lido no github que este problema poderia estar relacionado à library e o caminho que os arquivos fazem ou a algum bloqueio feito pelo meu antivírus. No entanto, depois de tentar desativar o antivírus e mudar o endereço da biblioteca, continua aparecendo o mesmo erro.
Alguém já teve este problema e sabe me dizer o que fazer?