我在库(动画)中的SaveGIF函数遇到问题。该功能使我这个错误:在动画包中找不到使用SaveGIF函数的'转换'
Error in cmd.fun(sprintf("%s --version", convert), intern = TRUE, ignore.stdout = !interactive(), :
unused argument(s) (ignore.stdout = !interactive())
I cannot find ImageMagick with convert = 'convert'
NULL
Warning message:
In im.convert(img.files, output = movie.name, convert = convert, :
Please install ImageMagick first or put its bin path into the system PATH variable
什么让我困惑的是,我必须将我的系统上,所以我预计SaveGIF要能够找到它没有任何麻烦:
[email protected]:~$ convert --version
Version: ImageMagick 6.5.7-8 2010-12-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009
如何将转换的bin路径添加到系统PATH变量中?
编辑:我使用Ubuntu,而不是Windows。
这个问题是相当古老的,但我想添加一个评论,看看在未来的人。我在Windows机器上遇到了同样的问题,尽管路径设置正确,以包含Imagemagick的目录。这对我来说有效,但如果有相同问题的人可以确认此解决方案也适用于他们,那将是一件好事:http://stackoverflow.com/questions/26933194/error-saving-gif-video- with-r-animation-library-and-imagemagick/28710980#28710980 – coffeinjunky 2015-02-25 16:13:46