title: Why cannot I install R package "cowplot"?
body: <p>When I try doing <code>install.packages(&quot;cowplot&quot;)</code> I get the following output:</p>
  <pre><code>Installing package into ‘/insertdirectoryname/R/x86_64-pc-linux-gnu-library/3.5’
  (as ‘lib’ is unspecified)
  trying URL 'http://cran.us.r-project.org/src/contrib/cowplot_1.1.1.tar.gz'
  Content type 'application/x-gzip' length 1353271 bytes (1.3 MB)
  ==================================================
  downloaded 1.3 MB
  
  * installing *source* package ‘cowplot’ ...
  ** package ‘cowplot’ successfully unpacked and MD5 sums checked
  ** R
  ** inst
  ** byte-compile and prepare package for lazy loading
  Error in loadNamespace(j &lt;- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
    object 'vI' not found
  ERROR: lazy loading failed for package ‘cowplot’
  * removing ‘/insertdirectoryname/R/x86_64-pc-linux-gnu-library/3.5/cowplot’
  Warning in install.packages :
    installation of package ‘cowplot’ had non-zero exit status
  
  The downloaded source packages are in
      ‘/tmp/RtmpBoRcoy/downloaded_packages’
  </code></pre>
  <p>I have also tried install.packages(&quot;cowplot&quot;, dependencies = TRUE), which gives me a similar issue as well. I will include my session info below as well. It should be noted that I am prohibited from upgrading R or RStudio due to work related reasons (we use RStudio server), so I have to work with R version 3.5.1.</p>
  <pre><code>&gt; sessionInfo()
  R version 3.5.1 (2018-07-02)
  Platform: x86_64-pc-linux-gnu (64-bit)
  Running under: CentOS Linux 7 (Core)
  
  Matrix products: default
  BLAS: /opt/R/lib64/R/lib/libRblas.so
  LAPACK: /opt/R/lib64/R/lib/libRlapack.so
  </code></pre>
  <p>Any help would be greatly appreciated :)</p>