bobby123qwe 2018-09-18 07:04 采纳率: 0%
浏览 3114

怎么解决R语言 安装gganimate的问题

devtools::install_github("dgrtwo/gganimate")
Downloading GitHub repo dgrtwo/gganimate@master
from URL https://api.github.com/repos/dgrtwo/gganimate/zipball/master
Installing gganimate
Downloading GitHub repo thomasp85/tweenr@master
from URL https://api.github.com/repos/thomasp85/tweenr/zipball/master
WARNING: Rtools is required to build R packages, but no version of Rtools compatible with R 3.5.0 was found. (Only the following incompatible version(s) of Rtools were found:3.5)

Please download and install the appropriate version of Rtools from http://cran.r-project.org/bin/windows/Rtools/.
Installing tweenr
"C:/PROGRA~1/R/R-35~1.0/bin/x64/R" \
--no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/zhangchen/AppData/Local/Temp/RtmpmYA2xF/devtools6f06713a6/thomasp85-tweenr-dc60be6" \
--library="C:/Users/zhangchen/Documents/R/win-library/3.5" \
--install-tests

  • installing source package 'tweenr' ... ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'tweenr'

  • removing 'C:/Users/zhangchen/Documents/R/win-library/3.5/tweenr' In R CMD INSTALL Installation failed: Command failed (1) "C:/PROGRA~1/R/R-35~1.0/bin/x64/R" \ --no-site-file --no-environ --no-save \ --no-restore --quiet CMD INSTALL \ "C:/Users/zhangchen/AppData/Local/Temp/RtmpmYA2xF/devtools6f015932143/thomasp85-gganimate-392819e" \ --library="C:/Users/zhangchen/Documents/R/win-library/3.5" \ --install-tests

ERROR: dependency 'tweenr' is not available for package 'gganimate'

  • removing 'C:/Users/zhangchen/Documents/R/win-library/3.5/gganimate' In R CMD INSTALL Installation failed: Command failed (1)

安装之后一直报错,快崩溃了,哪位大神帮忙看下??

  • 写回答

1条回答 默认 最新

  • 你知我知皆知 2024-08-07 05:30
    关注

    以下回答参考 皆我百晓生券券喵儿 等免费微信小程序相关内容作答,并由本人整理回复。

    要解决这个问题,您可以尝试以下步骤:

    1. 首先,确保您已经安装了R语言。如果还没有安装,请访问R的官方网站(http://www.r-project.org/)并按照指示进行安装。

    2. 确保您的系统中已安装了Rtools。在Windows上,您可以在“开始”菜单中搜索“Rtools”,然后右键点击它并选择“属性”。从弹出窗口中,找到“环境变量”选项卡,并检查是否勾选了“Rtools”。如果没有勾选,您需要将Rtools添加到环境变量中。

    3. 检查是否有任何错误消息或警告信息。这些通常会在运行devtools::install_github("dgrtwo/gganimate")命令时显示。例如,可能会出现类似于“Warning: Rtools is required to build R packages, but no version of Rtools compatible with R 3.5.0 was found.”的消息。这表明您尚未安装Rtools。

    4. 如果上述步骤都已完成,但仍然遇到问题,可能是因为您没有正确安装Rtools。请参阅Rtools的官方文档以获取有关如何正确配置环境变量的信息。

    如果您遵循以上步骤后仍无法解决问题,请提供更详细的信息,以便我能为您提供进一步的帮助。

    评论

报告相同问题?