title: getting error in installing ggplot2 package in R
body: <p>I am trying to install ggplot2 package in R and getting following error. kindly let me know what's wrong. I have reinstalled R also but nothing is working. Anyone please help. Thanks in advance.</p>
  <pre><code>&gt; install.packages(&quot;ggplot2&quot;)
  Installing package into ‘C:/Users/HP/Documents/R/win-library/4.0’
  (as ‘lib’ is unspecified)
  
    There is a binary version available but the source version is later:
          binary source needs_compilation
  ggplot2  3.3.5  3.3.6             FALSE
  
  installing the source package ‘ggplot2’
  
  trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.6.tar.gz'
  Content type 'application/x-gzip' length 3061989 bytes (2.9 MB)
  downloaded 2.9 MB
  
  * installing *source* package 'ggplot2' ...
  ** package 'ggplot2' successfully unpacked and MD5 sums checked
  ** using staged installation
  ** R
  ** data
  *** moving datasets to lazyload DB
  ** inst
  ** byte-compile and prepare package for lazy loading
  Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
    namespace 'rlang' 0.4.11 is already loaded, but &gt;= 1.0.0 is required
  Calls: &lt;Anonymous&gt; ... namespaceImport -&gt; loadNamespace -&gt; namespaceImport -&gt; loadNamespace
  Execution halted
  ERROR: lazy loading failed for package 'ggplot2'
  * removing 'C:/Users/HP/Documents/R/win-library/4.0/ggplot2'
  Warning in install.packages :
    installation of package ‘ggplot2’ had non-zero exit status
  
  The downloaded source packages are in
      ‘C:\Users\HP\AppData\Local\Temp\Rtmpk7jY7e\downloaded_packages’
  </code></pre>