【问题标题】:R, car package unable to load. Missing pbkrtestR,车包无法加载。缺少 pbkrtest
【发布时间】:2016-10-06 14:31:10
【问题描述】:

我有一个看起来像 installing car but unable to load quantreg 的问题。但是,建议的解决方案在我的情况下不起作用。

具体来说,我试图在 R-Studio 中加载包“car”。我已经使用install.packages("car",dependencies=TRUE) 命令安装了它。所以应该安装汽车需要的所有其他包。但是,一旦我尝试加载汽车,它会告诉我以下信息:

    Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()),
    versionCheck = vI[[j]]) : 
    There is no package called ‘pbkrtest’
    In addition: Warning message:
    Package ‘car’ was built under R Version 3.2.5 
    Error: package or namespace load failed for ‘car’

我也试过install.packages("package's name", repos=c("http://rstudio.org/_packages", "http://cran.rstudio.com"))这种方式装车,但也没用。

搜索互联网并没有返回任何有用的结果。

如果他们遇到同样的问题,我希望通过提供问题(和您的答案)来找到解决方案,并可能节省一些时间。

谢谢。

【问题讨论】:

  • 你的操作系统是什么?您是否将软件包作为预构建的二进制文件获取?如果是这样,则可以选择从源升级或本地安装。
  • 我用的是windows 10,目前没有问题。我通过更新 R 解决了上述问题。显然 pbkrtest 不再安装在较旧的 R 版本上。我的解决方案:将 R 更新到当前版本(卸载 R 并重新安装版本 3.3.1 - 你的头发中的错误),重新安装带有依赖项的汽车。谢谢!

标签: r rstudio cran


【解决方案1】:

删除car 和依赖包minganloptrRcppEigenlme4SparseMMatrixModelspbkrtest(你显然没有)、@987654329 @使用remove.packages()。关闭 R-Studio。

如果可能,请从命令行启动 R,因为您可能会在此处看到 R-Studio 会对您隐藏的错误。重新运行install.packages( "car" ) 并查找与pbkrtest 或其他包相关的错误。你会看到很多编译器警告,但应该没有错误。

您将在下面找到我在安装car 的过程中安装pbkrtest 包时看到的内容。只需按照以下步骤操作:卸载所有相关软件包并重新安装它们可能会解决您的问题。如果没有,请将安装的输出添加到您的问题中,如果您遇到同样的问题,请告诉我们。

* installing *source* package \u2018pbkrtest\u2019 ...
** package \u2018pbkrtest\u2019 successfully unpacked and MD5 sums checked
** R
** data
** inst
** preparing package for lazy loading
** help
*** installing help indices
  converting help for package \u2018pbkrtest\u2019
finding HTML links ... done
DATA-beets                              html  
DATA-budworm                            html  
KRmodcomp                               html  
finding level-2 HTML links ... done
PBmodcomp                               html  
PBrefdist                               html  
getKR                                   html  
get_ddf_Lb                              html  
model2restrictionMatrix                 html  
pbkrtest-internal                       html  
vcovAdj                                 html  
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (pbkrtest)
Making 'packages.html' ... done
* installing *source* package \u2018car\u2019 ...
** package \u2018car\u2019 successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package \u2018car\u2019
finding HTML links ... done
AMSsurvey                               html
Adler                                   html  
Angell                                  html  
Anova                                   html  
Anscombe                                html  
Baumann                                 html  
Bfox                                    html  
Blackmore                               html  
Boot                                    html  
Boxplot                                 html  
Burt                                    html  
CanPop                                  html  
Chile                                   html  
Chirot                                  html  
Contrasts                               html  
Rd warning: /tmp/RtmpHIzBAB/R.INSTALL69be5853f984/car/man/Contrasts.Rd:68: missing file link \u2018contr.treatment\u2019
Rd warning: /tmp/RtmpHIzBAB/R.INSTALL69be5853f984/car/man/Contrasts.Rd:68: missing file link \u2018contr.sum\u2019
Rd warning: /tmp/RtmpHIzBAB/R.INSTALL69be5853f984/car/man/Contrasts.Rd:69: missing file link \u2018contr.helmert\u2019
Rd warning: /tmp/RtmpHIzBAB/R.INSTALL69be5853f984/car/man/Contrasts.Rd:69: missing file link \u2018contr.poly\u2019
Cowles                                  html  
Davis                                   html  
DavisThin                               html  
Depredations                            html  
Duncan                                  html  
Ellipses                                html  
Ericksen                                html  
Florida                                 html  
Freedman                                html  
Friendly                                html  
Ginzberg                                html  
Greene                                  html  
Guyer                                   html  
Hartnagel                               html  
Highway1                                html  
KosteckiDillon                          html  
Leinhardt                               html  
LoBD                                    html  
Mandel                                  html  
Migration                               html  
Moore                                   html  
Mroz                                    html  
OBrienKaiser                            html  
Ornstein                                html  
Pottery                                 html  
Prestige                                html  
Quartet                                 html  
Robey                                   html  
SLID                                    html  
Sahlins                                 html  
Salaries                                html  
ScatterplotSmoothers                    html  
Soils                                   html  
States                                  html  
Transact                                html  
TransformationAxes                      html  
UN                                      html  
USPop                                   html  
Vocab                                   html  
WeightLoss                              html  
Womenlf                                 html  
Wong                                    html  
Wool                                    html  
avPlots                                 html  
bcPower                                 html  
bootCase                                html  
boxCox                                  html  
boxCoxVariable                          html  
boxTidwell                              html  
car-deprecated                          html  
car-internal                            html  
car-package                             html  
carWeb                                  html  
ceresPlots                              html  
compareCoefs                            html  
crPlots                                 html  
deltaMethod                             html  
densityPlot                             html  
dfbetaPlots                             html  
durbinWatsonTest                        html  
hccm                                    html  
hist.boot                               html  
infIndexPlot                            html  
influencePlot                           html  
Rd warning: /tmp/RtmpHIzBAB/R.INSTALL69be5853f984/car/man/influencePlot.Rd:62: missing file link \u2018cooks.distance\u2019
Rd warning: /tmp/RtmpHIzBAB/R.INSTALL69be5853f984/car/man/influencePlot.Rd:62: missing file link \u2018rstudent\u2019
Rd warning: /tmp/RtmpHIzBAB/R.INSTALL69be5853f984/car/man/influencePlot.Rd:63: missing file link \u2018hatvalues\u2019
invResPlot                              html  
invTranPlot                             html  
leveneTest                              html  
leveragePlots                           html  
linearHypothesis                        html  
logit                                   html  
marginalModelPlot                       html  
mcPlots                                 html  
ncvTest                                 html  
outlierTest                             html  
panel.car                               html  
plot.powerTransform                     html  
powerTransform                          html  
qqPlot                                  html  
Rd warning: /tmp/RtmpHIzBAB/R.INSTALL69be5853f984/car/man/qqPlot.Rd:114: missing file link \u2018qqplot\u2019
Rd warning: /tmp/RtmpHIzBAB/R.INSTALL69be5853f984/car/man/qqPlot.Rd:115: missing file link \u2018qqline\u2019
recode                                  html  
regLine                                 html  
residualPlots                           html  
scatter3d                               html  
scatterplot                             html  
scatterplotMatrix                       html  
showLabels                              html  
sigmaHat                                html  
skewPower                               html  
some                                    html  
Rd warning: /tmp/RtmpHIzBAB/R.INSTALL69be5853f984/car/man/some.Rd:47: missing file link \u2018tail\u2019
spreadLevelPlot                         html  
subsets                                 html  
symbox                                  html  
testTransform                           html  
vif                                     html  
wcrossprod                              html  
which.names                             html  
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (car)
Making 'packages.html' ... done

The downloaded source packages are in
\u2018/tmp/RtmpeVpYkV/downloaded_packages\u2019

【讨论】:

    猜你喜欢
    • 2015-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-10
    • 2016-02-06
    • 1970-01-01
    • 2016-05-29
    相关资源
    最近更新 更多