R、 汽车包无法装载。缺失PBKR测试
我有一个问题,看起来就像这个。然而,建议的解决方案在我的案例中不起作用 具体来说,我想在R-Studio中加载“car”包。我使用R、 汽车包无法装载。缺失PBKR测试,r,rstudio,cran,R,Rstudio,Cran,我有一个问题,看起来就像这个。然而,建议的解决方案在我的案例中不起作用 具体来说,我想在R-Studio中加载“car”包。我使用install.packages(“car”,dependencies=TRUE)命令安装了它。所以应该安装汽车需要的所有其他软件包。然而,一旦我尝试装载汽车,它会告诉我以下内容: Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]
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’
loadNamespace中的
错误(jRemovecar
和依赖包minga
,nloptr
,RcppEigen
,lme4
,SparseM
,矩阵模型pbkrtest
(您显然没有),使用Remove.packages()
。关闭R-Studio
如果可能,从命令行启动R,因为您可能会在此处看到R-Studio将对您隐藏的错误。重新运行install.packages(“car”)
,并查找与pbkrtest
或其他软件包相关的错误。您将看到许多编译器警告,但应该没有错误
下面,您将看到我在安装car
过程中安装pbkrtest
软件包时看到的内容。只需执行以下步骤:卸载所有相关软件包并重新安装它们可能会解决您的问题。如果没有,请将安装的输出添加到您的问题中,并让我们知道您是否拥有相同的pr问题
* 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
删除car
和依赖包minga
,nloptr
,RcppEigen
,lme4
,SparseM
,矩阵模型
,pbkrtest
(您显然没有),使用Remove.packages()
关闭R-Studio
如果可能,从命令行启动R,因为您可能会在此处看到R-Studio将对您隐藏的错误。重新运行install.packages(“car”)
,并查找与pbkrtest
或其他软件包相关的错误。您将看到许多编译器警告,但应该没有错误
下面,您将看到我在安装car
过程中安装pbkrtest
软件包时看到的内容。只需执行以下步骤:卸载所有相关软件包并重新安装它们可能会解决您的问题。如果没有,请将安装的输出添加到您的问题中,并让我们知道您是否拥有相同的pr问题
* 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
您的操作系统是什么?您是否以预构建二进制文件的形式获得了该软件包?如果是这样,升级或从源代码进行本地安装是可选的。我使用windows 10,到目前为止没有问题。我通过更新R解决了上述问题。显然,pbkrtest不再安装在较旧的R版本上。我的解决方案:将R更新为当前版本(卸载R并重新安装3.3.1版-头发中的bug),重新安装具有依赖项的car。谢谢!您的操作系统是什么?您是否以预构建二进制文件的形式获得了该软件包?如果是,升级或从源代码进行本地安装是可选的。我使用windows 10,到目前为止没有任何问题。我通过更新R解决了上述问题。显然,pbkrtest不再安装在较旧的R版本上。我的解决方案:将R更新到当前版本(卸载R并重新安装版本3.3.1-头发中的bug),重新安装带有依赖项的汽车。谢谢!