在R中有一个名为install.packages("meme")
的新包。我尝试使用以下代码安装它:
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
但是,每次我收到以下格式的错误时:
gridGraphics
似乎R在安装依赖包 - gridGraphics
时遇到问题。我尝试使用install.packages("gridGraphics")
安装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
,但我收到以下错误:
{{1}}
有什么想法吗?这是指向讨论软件包功能的页面的链接:https://www.r-bloggers.com/creat-meme-in-r/