无法从 Github 自动和手动安装 gganimate 包

unable to install gganimate package from Github, both automatically and manually

我目前正在尝试安装 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?)

所以经过几个小时的绝望,我决定尝试手动安装这个包。我遵循了这个 link: 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’

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

已解决问题,如果将来有人需要,请更新答案。

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

我也遇到了和你一样的问题,最后成功了

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

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

试试这个。它对我有用。

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

尝试以下操作:

install.packages("gganimate")

Note: This will depend on the version of R installed and if you are downloading from the Cran site.