提问人:Ofri Freibach 提问时间:8/5/2023 最后编辑:Roman LuštrikOfri Freibach 更新时间:8/6/2023 访问量:91
如何修复安装RMS包时的命名空间错误?
how to fix the namespace error when installing rms package?
问:
我使用代码安装了软件包: install.packages(“rms”,dependencies = TRUE),当dependencies=false时,我遇到同样的问题
当我尝试加载包时,我收到以下消息:
"Error: package or namespace load failed for ‘rms’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘MatrixModels’"
一般我想使用 ols 函数:
regress_a <- ols(voted~hawthorne+civicduty+neighbors+self, data=social,method="qr",x=T);
cluster_std_regress_a<-robcov(regress_a,social$hh_id,method=c('efron'));
print(cluster_std_regress_a)
并且无法让它工作
还有什么可以使用的吗?还是让 RMS 工作的方法?
答:
0赞
Joan
8/6/2023
#1
我知道罗曼已经回答了你的问题,我认为这应该有效。但这里只是另一个提示,您可以尝试使用包管理器,例如 or .我会推荐过来,即使他们都工作得很好。由于前者为您提供了依赖项的概述以及将先验安装的软件包。
欲了解更多信息,请访问:https://github.com/r-lib/pakpak
pacman
pak
pacman
评论
MatrixModels
install.packages("MatrixModels")