1

我想安装 gganimate,但是当我在公司环境中的防火墙后面工作时, install_github 不是一个选项,因为它返回:

install_github("dgrtwo/gganimate")
Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
  Couldn't resolve host nam

我试图手动安装它,但我得到的结果是:

install.packages("C:/Users/stefanj/Downloads/gganimate.zip", repos = NULL, type = "win.binary")
Installing package into ‘C:/Users/stefanj/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Warning in install.packages :
  cannot open compressed file 'gganimate/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection

我为不同的库(rCharts)找到了解决方法:

library(downloader)
download("https://github.com/ramnathv/rCharts/archive/master.tar.gz", "rCharts.tar.gz")
install.packages("rCharts.tar.gz", repos = NULL, type = "source")

但我找不到 gganimate 的 tar.gz 文件。我只有一个 zip 文件。任何人都知道如何从 zip 安装源代码或在哪里可以找到 gganimate 的实际 tar.gz 文件?

我努力了

install.packages("gganimate.zip", repos = NULL, type = "source")

但它失败了。

4

0 回答 0