本文介绍了无法在R版本3.2.3中完全安装软件包(“插入符号")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

> require("caret")
  Loading required package: caret
  Loading required package: lattice
  Loading required package: ggplot2
  Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =      vI[[j]]) :
   there is no package called ‘pbkrtest’

所以我发现缺少"pbkrtest",然后我尝试重新安装它.

So I found that there is lack of "pbkrtest" then I tried to reinstall it.

> install.packages("pbkrtest")
 Installing package into ‘C:/Users/ADMIN/Documents/R/win-library/3.2’
 (as ‘lib’ is unspecified)

 There is a binary version available but the source version is
 later:
     binary source needs_compilation
 pbkrtest  0.4-2  0.4-3             FALSE

 installing the source package ‘pbkrtest’

trying URL 'https://rweb.crmda.ku.edu/cran/src/contrib/pbkrtest_0.4-  3.tar.gz'
Content type 'application/x-gzip' length 164415 bytes (160 KB)
downloaded 160 KB

* installing *source* package 'pbkrtest' ...
** package 'pbkrtest' successfully unpacked and MD5 sums checked
** R
** data
** inst
** preparing package for lazy loading
Warning: replacing previous import by 'stats::sigma' when loading 'pbkrtest'
Error : object 'sigma' is not exported by 'namespace:stats'
ERROR: lazy loading failed for package 'pbkrtest'
* removing 'C:/Users/ADMIN/Documents/R/win-library/3.2/pbkrtest'

The downloaded source packages are in
    ‘C:\Users\ADMIN\AppData\Local\Temp\Rtmpk7mJT0\downloaded_packages’
Warning messages:
1: running command '"D:/R-3.2.3/bin/x64/R" CMD INSTALL -l
"C:\Users\ADMIN\Documents\R\win-library\3.2"

  C:\Users\ADMIN\AppData\Local\Temp\Rtmpk7mJT0/downloaded_packages/pbkrtest_0.4-  3.tar.gz' had status 1
2: In install.packages("pbkrtest") :
installation of package ‘pbkrtest’ had non-zero exit status

安装似乎一直失败.结果,我无法使用插入符号包使用其他代码.

It seems like that the installation keeps failing.As a result, I couldn't use other code using caret packages.

推荐答案

我在Windows 7上也遇到了这个问题.a)确保您的R版本已更新为最新的R版本3.2.3b)默认来源似乎正在安装Unix版本.因此,我手动下载了 https://cran.r-project.org/web /packages/pbkrtest/index.html (适用于Windows)c)使用R菜单中的手动安装功能来安装软件包.

I faced this problem as well on Windows 7. I did following steps in the sequence and it worked.a) Make sure your R version is updated latest R release 3.2.3b) The default sources seems to be installing Unix version. So I manually downloaded https://cran.r-project.org/web/packages/pbkrtest/index.html for windowsc) Use manually install function from R menu to install the package.

干杯,拉坦(Ratan)

Cheers,Ratan

这篇关于无法在R版本3.2.3中完全安装软件包(“插入符号")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 06:42
查看更多