Hola José,
Veo que tienes Windows, por el path que aparece en el error...
En este caso tienes que hacer esto:
* No sé si en versiones anteriores instalaste las RTools.
* Si no es asÃ, conviene que lo hagas "dplyr" busca un compilador para instalarse y no lo encuentra. Esto es lo que justamente te ofrece las RTools.
* Como estás usando la versión 4.3, tienes que instalarla desde aquÃ: https://cran.r-project.org/bin/windows/Rtools/rtools43/rtools.html
Gracias!
Carlos.
El lun, 4 sept 2023 a las 21:30, J.M. Santiago (<jmsant en picos.com>) escribió:
Hola a todos:
He instalado las últimas versiones de R y R-studio y no consigo instalar el paquete "dplyr". Al intentarlo me da el siguiente mensaje.
Por favor. si alguien tiene idea de cómo resolver este problema, por favor, necesito ayuda.
Muchas gracias,
José M.
Hi,
I have installed the last versions of R and R-studio but I can´t install the "dplyr" package. When I try, I get the following message.
Please, if somebody can help me I will be very gratefull.
Thank you very much.
José M.
Installing package into 'C:/Users/jmsan/AppData/Local/R/win-library/4.3'
(as 'lib' is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
dplyr 1.1.2 1.1.3 TRUE
installing the source package 'dplyr'
trying URL 'https://cran.rstudio.com/src/contrib/dplyr_1.1.3.tar.gz'
Content type 'application/x-gzip' length 1083635 bytes (1.0 MB)
downloaded 1.0 MB
* installing *source* package 'dplyr' ...
** package 'dplyr' successfully unpacked and MD5 sums checked
** using staged installation
** libs
g++ -std=gnu++17 -I"C:/PROGRA~1/R/R-43~1.1/include" -DNDEBUG -I"c:/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c chop.cpp -o chop.o
sh: line 1: g++: command not found
make: *** [C:/PROGRA~1/R/R-43~1.1/etc/x64/Makeconf:272: chop.o] Error 127
ERROR: compilation failed for package 'dplyr'
* removing 'C:/Users/jmsan/AppData/Local/R/win-library/4.3/dplyr'
Warning in install.packages :
installation of package 'dplyr' had non-zero exit status
---
Dr. José MarÃa Santiago Sáez (PhD)
Madrid - España/Spain
+34 646 165 291
jmsant en picos.com
https://sites.google.com/site/santiagojosemaria/