在R中有一个名为meme的新包,我尝试使用以下代码安装它:
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似乎R在安装依赖程序包(gridGraphics)时遇到了困难。我尝试使用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有什么想法吗?下面链接到一个讨论包特性的页面:https://www.r-bloggers.com/creat-meme-in-r/
发布于 2017-10-26 05:35:51
gridGraphics需要ImageMagick。我将在以后的版本中删除此依赖项。作为一个很小的包,拥有系统依赖不是一个好主意。
https://stackoverflow.com/questions/46938429
复制相似问题