install_github下载空白master.zip

时间:2014-02-21 16:17:47

标签: r github

我在GitHub(here)上放了一个测试R项目,我正在尝试使用以下代码进行安装:

devtools::install_github('HamiltonBlake/test')

我得到以下输出:

Installing github repo test/master from HamiltonBlake
Downloading test.zip from https://github.com/HamiltonBlake/test/archive/master.zip
Installing package from C:\Users\Ham\AppData\Local\Temp\RtmpAzTLDT/test.zip
Error: Does not appear to be an R package (no DESCRIPTION)

如果我手动转到https://github.com/HamiltonBlake/test/archive/master.zip并下载它,它是一个带有server.R和ui.R的压缩文件夹。

但是当我转到我的Temp文件夹时,上面下载的压缩文件夹包含一个名为“file236447a6420”的空文件,以及一个名为“rs-graphics-3f4820b1-7366-461a-b095-f2106ef72e73”的空文件夹。

我发现这个question让它看起来好像等了几个小时,但不像这个问题,我可以从install_github使用的相同路径下载和安装,所以它看起来像github已经更新了master.zip。

我的电脑上有完整的读/写权限,以及最新的devtools和rtools。

1 个答案:

答案 0 :(得分:1)

install_github的说明

Attempts to install a package directly from github.

如果您有ui.R和server.R,这意味着您实际上有一个闪亮的应用程序 - 而不是包。

如果您想直接从github运行,或者您可以在本地克隆存储库并使用runGitHub,那么您需要查看闪亮包中的runApp函数。