Cannot install ggplot2

Hi friends, anybody can kindly help me with the ggplot2 install problem? It shows in the Console as below:

install.packages("ggplot2")
Installing package into ‘C:/Users/Tongli/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.10 TRUE
ggplot2 2.2.1 3.3.3 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\Tongli\AppData\Local\Temp\RtmpGMBEIO\downloaded_packages
installing the source package ‘ggplot2’

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

ERROR: dependency 'isoband' is not available for package 'ggplot2'

  • removing 'C:/Users/Tongli/Documents/R/win-library/3.3/ggplot2'
    Warning in install.packages :
    running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\Tongli\Documents\R\win-library\3.3" C:\Users\Tongli\AppData\Local\Temp\RtmpGMBEIO/downloaded_packages/ggplot2_3.3.3.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\Tongli\AppData\Local\Temp\RtmpGMBEIO\downloaded_packages’

library("ggplot2")
Error in library("ggplot2") : there is no package called ‘ggplot2’

Try

install.packages("isoband")

then try installing ggplot2 again.

This topic was automatically closed 21 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.