RStudio软件包“ digest”无法使用,加载或安装

时间:2019-09-19 16:55:25

标签: rstudio install.packages quanteda

试图遵循quanteda教程,我遇到了该程序的问题here;执行以下代码,我收到错误消息,提示无法解决的程序包问题。

> require(quanteda)
> require(quanteda.corpora)
> require(ggplot2)

> corp_tweets <- download(url = 'https://www.dropbox.com/s/846skn1i5elbnd2/data_corpus_sampletweets.rds?dl=1')


Error in loadNamespace(name) : there is no package called ‘digest’

由于该软件包似乎丢失了,我尝试加载并获取:

> require("digest")
Loading required package: digest
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
  there is no package called ‘digest’

现在,我尝试安装-再次,但没有成功。

> install.packages("digest")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/digest_0.6.20.zip'
Content type 'application/zip' length 223139 bytes (217 KB)
downloaded 217 KB

package ‘digest’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘digest’

The downloaded binary packages are in
    C:\Users\my_username\AppData\Local\Temp\Rtmpaunnzu\downloaded_packages

有人知道怎么从这里拿走吗?非常感谢您的帮助。

P.S。:This(未回答)的问题也没有帮助我。

1 个答案:

答案 0 :(得分:0)

我能找到的唯一“解决方案”是重新安装RStudio