title: Installing meme package in R
body: <p>There's a new package called <code>meme</code> in R. I tried installing it using the following code:</p>
  
  <pre><code>install.packages("meme")
  </code></pre>
  
  <p>However, each time I get an error in the following format:</p>
  
  <pre><code>also installing the dependency ‘gridGraphics’
  
  installing the source packages ‘gridGraphics’, ‘meme’
  
  trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/gridGraphics_0.2.tar.gz'
  Content type 'application/x-gzip' length 64486 bytes (62 KB)
  ==================================================
  downloaded 62 KB
  
  trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/meme_0.0.6.tar.gz'
  Content type 'application/x-gzip' length 13479 bytes (13 KB)
  ==================================================
  downloaded 13 KB
  
  * installing *source* package ‘gridGraphics’ ...
  ** package ‘gridGraphics’ successfully unpacked and MD5 sums checked
  ** R
  ** inst
  ** preparing package for lazy loading
  Error in system("convert --version", intern = TRUE, ignore.stderr = TRUE) : 
    error in running command
  Error : unable to load R code in package ‘gridGraphics’
  ERROR: lazy loading failed for package ‘gridGraphics’
  * removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/gridGraphics’
  ERROR: dependency ‘gridGraphics’ is not available for package ‘meme’
  * removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/meme’
  
  The downloaded source packages are in
      ‘/private/var/folders/47/71_55p097y94jptwk6t75f8w0000gn/T/Rtmpulde6u/downloaded_packages’
  Warning messages:
  1: In install.packages("meme") :
    installation of package ‘gridGraphics’ had non-zero exit status
  2: In install.packages("meme") :
    installation of package ‘meme’ had non-zero exit status
  </code></pre>
  
  <p>It seems R is having trouble installing a dependency package -<code>gridGraphics</code>. I tried installing <code>gridGraphics</code> using <code>install.packages("gridGraphics")</code> but I got the following error: </p>
  
  <pre><code>installing the source package ‘gridGraphics’
  
  trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/gridGraphics_0.2.tar.gz'
  Content type 'application/x-gzip' length 64486 bytes (62 KB)
  ==================================================
  downloaded 62 KB
  
  * installing *source* package ‘gridGraphics’ ...
  ** package ‘gridGraphics’ successfully unpacked and MD5 sums checked
  ** R
  ** inst
  ** preparing package for lazy loading
  Error in system("convert --version", intern = TRUE, ignore.stderr = TRUE) : 
    error in running command
  Error : unable to load R code in package ‘gridGraphics’
  ERROR: lazy loading failed for package ‘gridGraphics’
  * removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/gridGraphics’
  
  The downloaded source packages are in
      ‘/private/var/folders/47/71_55p097y94jptwk6t75f8w0000gn/T/Rtmpulde6u/downloaded_packages’
  Warning message:
  In install.packages("gridGraphics") :
    installation of package ‘gridGraphics’ had non-zero exit status
  </code></pre>
  
  <p>Any ideas? Here's a link to a page discussing the package's features: <a href="https://www.r-bloggers.com/creat-meme-in-r/" rel="nofollow noreferrer">https://www.r-bloggers.com/creat-meme-in-r/</a></p>