Warning in install.packages : installation of package ‘gdata’ had non-zero exit status

Hey, i'm having a problem with installing "gdata", i wrote this:
install.packages("gdata",dependencies = T)
and i got this:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Mateo/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
installing the source package ‘gdata’

trying URL 'https://cran.rstudio.com/src/contrib/gdata_2.18.0.1.tar.gz'
Content type 'application/x-gzip' length 1054317 bytes (1.0 MB)
downloaded 1.0 MB

""C:\Program Files version nueva\R\R-4.2.1/bin/x64/Rterm.exe"" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
Warning in install.packages :
installation of package ‘gdata’ had non-zero exit status
I'm quite new in R and i don't really have and idea on how to resolve this, any help would be appreciated.

Hi, you need install Rtools. Next you could install gdata

see this video and make the same.

It seems you have installed R itself on a non-standard location (i. e. "Program Files version nueva"), R doesn't work well on Windows when there are empty spaces on its file PATH.

Do you have any idea on how can i fix that?

Install R on the standard location C:\Program Files\R\R-4.2.1, the "apparent" empty space here is managed by the OS internally so it doesn't cause any troubles.

1 Like

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.