【问题标题】:unable to install gganimate package from Github, both automatically and manually无法从 Github 自动和手动安装 gganimate 包
【发布时间】:2016-05-23 09:44:34
【问题描述】:

我目前正在尝试安装 gganimate 包,但似乎无法安装。 我正在运行 Win 10、Rx64 3.3.0 和 Rstudio 0.99.896; 以下命令:

devtools::install_github("dgrtwo/gganimate")

会抛出这个错误:

Downloading GitHub repo dgrtwo/gganimate@master
from URL https://api.github.com/repos/dgrtwo/gganimate/zipball/master
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Problem with the SSL CA cert (path? access rights?)

因此,经过几个小时的绝望,我决定尝试手动安装该软件包。我点击了这个链接: here

以下命令:

install.packages(pkgs = "C:/Users/Superzucca/Desktop/gganimate-master.zip", repos = NULL)

结果:

    Installing package into ‘C:/Users/Superzucca/Documents/R/win-library/3.3’ 
(as ‘lib’ is unspecified)

但是当我打电话时:

library("gganimate-master") ####  -> as suggsted by R itself!! 

抛出此错误:

Error in library("gganimate-master") : there is no package called ‘gganimate-master’

请帮忙。我安装其他 pkg 没有任何问题,老实说,我不知道还能尝试什么。 先感谢您, 超级祖卡

【问题讨论】:

  • 手动安装后library(gganimate)不起作用?
  • 它说没有这样的包。我已经尝试添加和删除引号,尝试使用 R 建议的“gganimate”、“gganimate-master”......什么都没有。它只是不会加载

标签: r installation manual


【解决方案1】:

试试这个。它对我有用。

library(devtools)
library(RCurl)
library(httr)
set_config( config( ssl_verifypeer = 0L ) )
devtools::install_github("dgrtwo/gganimate")

【讨论】:

  • 不鼓励仅使用代码的答案,因为它们没有说明如何解决问题。请更新您的答案,以解释这如何改进已接受的答案和几乎相同的其他答案。请查看How do I write a good answer
【解决方案2】:

找出问题所在,如果将来有人需要,请更新答案。

this LINK to another SO question部分解决了我的问题; 我还必须将 R、Rstudio 和库文件夹添加到我的 AntiVirus 的排除列表中,当然还要以管理员身份运行 :)

【讨论】:

    【解决方案3】:

    我和你有同样的问题,但我终于成功了。

    一般来说,你要处理两个问题:第一,连接到github;其次,安装Rcppgganimate

        library(devtools)
        library(RCurl)
        library(httr)
        set_config( config( ssl_verifypeer = 0L ) )
        devtools::install_github("RcppCore/Rcpp")
        devtools::install_github("dgrtwo/gganimate")
    

    【讨论】:

      【解决方案4】:

      尝试以下方法:

      install.packages("gganimate")
      

      注意:这取决于安装的 R 版本以及您是否从 Cran 站点下载。

      【讨论】:

      • 请为您的回答添加更多解释
      猜你喜欢
      • 1970-01-01
      • 2019-07-31
      • 2020-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-15
      • 2015-12-06
      相关资源
      最近更新 更多