已安装R包但无法加载?

时间:2017-09-29 17:46:00

标签: r install.packages

我在R中安装了“digest”包。

> install.packages("digest")
Installing package into ‘C:/Users/user/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://mran.microsoft.com/snapshot/2017-03-15/bin/windows/contrib/3.3/digest_0.6.12.zip'
Content type 'application/zip' length 172746 bytes (168 KB)
downloaded 168 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\user\AppData\Local\Temp\RtmpaMPhK6\downloaded_packages

我确认此软件包安装在:

C:\Program Files\R\R-3.3.2\library\digest

我的回购是:

getOption("repos")

                                            CRAN                                        CRANextra 
"https://mran.microsoft.com/snapshot/2017-03-15"             "http://www.stats.ox.ac.uk/pub/RWin" 

然后我想安装“kableExtra”包。但是我收到一条错误消息,指出没有“摘要”:

 > library(kableExtra)
    Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
      there is no package called ‘digest’
    Error: package or namespace load failed for ‘kableExtra’

有什么问题?这是因为原始库来自CRAn,但出于某种原因,这个“摘要”包来自MRAN?我怎样才能解决这个问题?

0 个答案:

没有答案