动画包无法找到ImageMagick的转换与= QUOT,转换和QUOT; [英] animation package cannot find ImageMagick with convert = "convert"
问题描述
我已经在Windows 7,R 3.0.1跑过去动画长达2个星期前。今天我装ř3.0.2下载动画包运行制作动画需要。这样做,当我尝试运行了动画之后(是一个脚本)我得到以下错误:
> saveGIF(FUN2(),时间间隔= 0.1,OUTDIR =图片/动画)
,我不能找到转换ImageMagick的=转换
空值
警告消息:
1:在运行命令'转换--version'有状态4
2:在im.convert(img.files,输出= movie.name,转换=转换,:
ImageMagick的尚未安装!
我有ImageMagick的安装路径上为我做的问题表现出视频:的 http://www.youtube.com/watch?v=gvpawqLyCZY&feature=youtu.be
我可以运行转换--version
在Windows命令行,并得到以下内容:
C:\\用户\\饰品>转换--version
版本:ImageMagick的6.8.6-8 2013年8月4日Q16 http://www.imagemagick.org
版权所有:版权所有(C)1999年至2013年ImageMagick的工作室LLC
特点:DPC的OpenMP
代表:bzlib的djvu FFTW的fontconfig freetype的JNG JP2 JPEG LCMS LZMA的OpenEXR PA
非政府组织PNG PS TIFF WEBP点¯xXML zlib的
然而,R中产量运行系统(转换--version)
:
无效驱动器规格。
警告消息:
运行命令'转换--version'有状态4
我是什么做错了,或我可能会改变,以使动画包(和R)看到的ImageMagick?
下面是问题的其他信息(在R命令行中我得到的):
>系统(转换-version)
无效驱动器规格。
警告消息:
运行命令'转换-version'有状态4>贝(转换--version)
版本:ImageMagick的6.8.7-9 Q16 64 2013年11月28日http://www.imagemagick.org
版权所有:版权所有(C)1999至2014年ImageMagick的工作室LLC
特点:DPC模块的OpenMP
代表:FreeType的bzlib JBIG JNG JP2 JPEG LCMS LQR pangocairo png格式的PS TIFF WEBP XML的zlib
我有一个类似的问题与{} RGL movie3d()
功能。在这种情况下,你可以明确地传递一个字符串转换为被执行,因此可以'告诉'R在哪里可以找到合适的 CONVERT.EXE
:
imconvertstring< - \\C:\\\\ Program Files文件\\\\的ImageMagick-6.9.0-Q16 \\\\ CONVERT.EXE \\-delay 1X%D%S *巴纽%S。 %的
movie3d(spin3d(),持续时间= 10,转换= imconvertstring)
您可以用做同样的{}动画包 ani.options()
来指定确切位置 CONVERT.EXE
需要。看到{}动画包<$ C C> im.convert的帮助条目()。
I have run animations in the past up to 2 weeks ago on Windows 7, R 3.0.1. Today I loaded R 3.0.2 and needed to download the animations package to run make an animation. After doing so when I try to run the animation (here is a script) I get the following error:
> saveGIF(FUN2(), interval = 0.1, outdir = "images/animate")
I cannot find ImageMagick with convert = "convert"
NULL
Warning messages:
1: running command 'convert --version' had status 4
2: In im.convert(img.files, output = movie.name, convert = convert, :
ImageMagick not installed yet!
I have ImageMagick installed and on the path as demonstrated in the video I made of the problem: http://www.youtube.com/watch?v=gvpawqLyCZY&feature=youtu.be
I can run convert --version
in the Windows command line and get the following:
C:\Users\trinker>convert --version
Version: ImageMagick 6.8.6-8 2013-08-04 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib djvu fftw fontconfig freetype jng jp2 jpeg lcms lzma openexr pa
ngo png ps tiff webp x xml zlib
Yet running system("convert --version")
in R yields:
Invalid drive specification.
Warning message:
running command 'convert --version' had status 4
What am I doing wrong or might I alter to make the animation package (and R) see ImageMagick?
Here is additional information for the problem (in the R command line I get):
> system("convert -version")
Invalid drive specification.
Warning message:
running command 'convert -version' had status 4
> shell("convert --version")
Version: ImageMagick 6.8.7-9 Q16 x64 2013-11-28 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib freetype jbig jng jp2 jpeg lcms lqr pangocairo png ps tiff webp xml zlib
I had a similar issue with the {rgl} movie3d()
function. In that case you can explicitly pass a convert string to be executed, and so can 'tell' R where to find the right convert.exe
:
imconvertstring<-"\"c:\\Program Files\\ImageMagick-6.9.0-Q16\\convert.exe\" -delay 1x%d %s*.png %s.%s"
movie3d(spin3d(),duration=10,convert=imconvertstring)
You can do the same with the {animation} package using ani.options()
to specify the exact location to convert.exe
needed. See the help entry for im.convert()
in the {animation} package.
这篇关于动画包无法找到ImageMagick的转换与= QUOT,转换和QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!