在卸载某些软件包时遇到问题

时间:2018-12-14 01:36:09

标签: r

我搜索了Stackoverflow,但是找不到我的问题的简单答案。因此,我想通过使用rms软件包进行有序的logit建模。因此,我安装了此程序包,并在通过Library调用它之后,得到以下信息:

> library("rms")
Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: ‘Hmisc’

The following objects are masked from ‘package:base’:

    format.pval, units

Loading required package: SparseM

Attaching package: ‘SparseM’

The following object is masked from ‘package:base’:

    backsolve

到目前为止,这不是问题。因此,我安装了所有提到的软件包。然后,再次运行Library(rms)之后,我面临以下问题:

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

我很困惑。我卸载了RStudio,然后重新安装了它,但是没有任何变化。另外,我对其他软件包也有同样的问题。例如,我试图致电MASS软件包,同样的问题。

    > library("MASS", lib.loc="C:/Program Files/R/R-3.5.1/library") 
Error in value[[3L]](cond) :    
  Package ‘MASS’ version 7.3.51.1 cannot be unloaded:  
Error in unloadNamespace(package) : namespace ‘MASS’ is imported by ‘rockchalk’, ‘lme4’ so cannot be unloaded

0 个答案:

没有答案