【问题标题】:Installation failed: Does not appear to be an R package (no DESCRIPTION安装失败:似乎不是 R 包(没有说明
【发布时间】:2018-08-25 17:01:14
【问题描述】:

我正在尝试使用这个:

devtools::install_github("kbenoit/quanteda/quanteda.corpora")

然后我得到这个错误:

Downloading GitHub repo kbenoit/quanteda@master
from URL https://api.github.com/repos/kbenoit/quanteda/zipball/master
Installation failed: Does not appear to be an R package (no DESCRIPTION)

有什么问题?

【问题讨论】:

  • 对于来自 Github 的包,您使用 username/repo 的形式。转到 github.com/kbenoit/quanteda 将我重新路由到位于 quanteda/quanteda 的 repo。 quanteda/quanteda 是您用于安装的位置。安装说明也在 repo 的自述文件中。
  • 谢谢,但我有新错误 >>> 安装失败:找不到 'C:\Users\SBA\AppData\Local\Temp\RtmpAnuZQn\devtools17f826bf43af\quanteda-quanteda.corpora-91a3674' .

标签: r


【解决方案1】:

此软件包的自述文件描述了安装它的正确语法(see)

devtools::install_github("quanteda/quanteda.corpora")

【讨论】:

  • 谢谢,但有这个新错误,无法弄清楚。 >>> 安装失败:找不到'C:\Users\SBA\AppData\Local\Temp\RtmpAnuZQn\devtools17f826bf43af\quanteda-quanteda.corpora-91a3674'。
  • 多么奇怪。你检查过这个文件夹是否存在吗?你重启R了吗?您在安装过程中收到的其他消息是什么?
  • 我重新启动了 R,这是错误 >>> 从 URL api.github.com/repos/quanteda/quanteda.corpora/zipball/master 下载 GitHub repo quanteda/quanteda.corpora@master 安装失败:找不到 'C:\Users\SBA\ AppData\Local\Temp\RtmpC62Mx5\devtools15a01af22bc\quanteda-quanteda.corpora-91a3674'。
  • 你试过从 github 安装不同的包吗?例如devtools::install_github("tidyverse/ggplot2")
  • devtools::install_github("tidyverse/ggplot2") 是的,这行得通。
猜你喜欢
  • 2015-01-03
  • 2012-03-02
  • 2021-12-16
  • 1970-01-01
  • 2020-06-12
  • 2018-03-07
  • 1970-01-01
  • 2019-08-27
  • 1970-01-01
相关资源
最近更新 更多