rlang error in installing in ggplot2

I couldn't install ggplot2, it give following error

preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'rlang' 0.2.0 is being loaded, but >= 0.2.1 is required
ERROR: lazy loading failed for package 'ggplot2'

  • removing 'C:/Users/softlink/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\softlink\Documents\R\win-library\3.3" C:\Users\softlink\AppData\Local\Temp\Rtmpmuj0ya/downloaded_packages/ggplot2_3.1.0.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘ggplot2’ had non-zero exit status

The first thing to try is


You should first update your rlang package, current version is

1 Like


the issue is resolved by updating Rstudio to lattest version.

1 Like

Hi @softlinkuk! Is it possible you mean that you updated R to the latest version? (A good idea in this case, I’d agree!)

Your version of the RStudio IDE shouldn’t have anything to do with this problem. See: Differentiating R from RStudio

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