在动画包中SaveGIF功能无法找到“转换” [英] Cannot find 'convert' using SaveGIF function in animation package

查看:675
本文介绍了在动画包中SaveGIF功能无法找到“转换”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在与库(动画)的SaveGIF功能的麻烦。该功能给了我这个错误:

I'm having trouble with the SaveGIF function in library (animation). The function gives me this error:

错误cmd.fun(sprintf的(%S --version,转换),实习生= TRUE,ignore.stdout =互动():结果
    未使用的参数(S)(ignore.stdout =!交互式())结果
  我不能转换='转换'结果发现ImageMagick的
  NULL结果
  警告消息:结果
  在im.convert(img.files,输出= movie.name,转换=转换,:结果
    请首先安装ImageMagick的或把它的bin路径到系统PATH变量

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要能够找到它没有任何麻烦:

What confuses me is that I do have convert on my system, so I'd expect SaveGIF to be able to find it without any trouble:

我@我-的笔记本电脑:〜$转换--version

me@my-laptop:~$ convert --version

版本:ImageMagick的6.5.7-8 2010-12-02 Q16 http://www.imagemagick.org 结果
  版权所有:版权所有(C)1999-2009

Version: ImageMagick 6.5.7-8 2010-12-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009

如何转换的bin路径添加到系统PATH变量?

How do I add convert's bin path to the system PATH variable?

编辑:我使用Ubuntu,而不是Windows

I'm using Ubuntu, not Windows.

推荐答案

通常我们不需要手动设置Linux下的PATH变量。我使用Ubuntu的为好,但我不能重现你的错误。什么是你的 - [R版本?

Usually we do not need to manually set the PATH variable under Linux. I'm using Ubuntu as well, but I cannot reproduce your error. What's your R version?

> sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] animation_2.0-4    

据我所看到的,误差来源于功能系统(),而不是不能够找到转换。参数 ignore.stdout 进来R中2.12.1,所以你必须使用R的低版本目前的版本是2.13.0,我建议你升级到最新版本。请参见 http://cran.r-project.org/bin/linux/ubuntu/ 如何保持R,其中CRAN更新。

As far as I can see, the error comes from the function system() instead of not being able to find convert. The argument ignore.stdout came in R 2.12.1, so you must be using a lower version of R. The current version is 2.13.0, and I recommend you to upgrade to the latest version. See http://cran.r-project.org/bin/linux/ubuntu/ for how to keep R updated with CRAN.

这篇关于在动画包中SaveGIF功能无法找到“转换”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆