installing ggplot2 packages problems

Hello, I have some problems with ggplot2 package installation, I had tried installing package rlang and update Rstudio, but any of those solutions works for me. Somebody can another solution for this issue. help, I`m begginer level amateur, Thanks

 install.packages("ggplot2")
Installing package into ‘C:/Users/USUARIO/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependencies ‘isoband’, ‘rlang’


  There are binary versions available but the source versions are later:
        binary source needs_compilation
rlang    0.2.0  0.4.5              TRUE
ggplot2  2.2.1  3.3.0             FALSE

  Binaries will be installed
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘isoband’
  These will not be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB

package ‘rlang’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\USUARIO\AppData\Local\Temp\Rtmpao8iaX\downloaded_packages
installing the source package ‘ggplot2’

trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.0.tar.gz'
Content type 'application/x-gzip' length 3031461 bytes (2.9 MB)
downloaded 2.9 MB

ERROR: dependency 'isoband' is not available for package 'ggplot2'
* removing 'C:/Users/USUARIO/Documents/R/win-library/3.3/ggplot2'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\USUARIO\Documents\R\win-library\3.3" C:\Users\USUARIO\AppData\Local\Temp\Rtmpao8iaX/downloaded_packages/ggplot2_3.3.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\USUARIO\AppData\Local\Temp\Rtmpao8iaX\downloaded_packages’

Which version of R o you have?
Check it running this in R's console:

R.Version()

Look for this output:
image
You should have the last one: 3.6.3. If not, update it. If you are in Windows you can use 'installr' package.

It was my firts time in the forum and my problem was solved in less than an hour. Thank you so much, I though that just check for uptades ( Help Tab) I get the new version, but, actually, not. My version was 3.3.1. Thanks again.

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