ggplot2 installation error what i do for ggplot installation

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Installing package into ‘C:/Users/Daimkhan/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)

There is a binary version available but the source version is later:
binary source needs_compilation
ggplot2 3.1.1 3.3.3 FALSE

installing the source package ‘ggplot2’

trying URL ''
Content type 'application/x-gzip' length 3058840 bytes (2.9 MB)
downloaded 2.9 MB

  • installing source package 'ggplot2' ...
    ** package 'ggplot2' successfully unpacked and MD5 sums checked
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** preparing package for lazy loading
    Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
    there is no package called 'pillar'
    ERROR: lazy loading failed for package 'ggplot2'
  • removing 'C:/Users/Daimkhan/Documents/R/win-library/3.4/ggplot2'
    Warning in install.packages :
    running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\Daimkhan\Documents\R\win-library\3.4" C:\Users\Daimkhan\AppData\Local\Temp\RtmpQTx1lT/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

The error is informing you of a missing dependency, in this case its 'pillar' so you can try to install that.


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.