包装安装gganimate的问题

时间:2017-07-06 09:48:40

标签: r github r-package gganimate

我想安装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的actuall tar.gz文件?

我试过了

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

但失败了。

0 个答案:

没有答案
相关问题