载入rms包时出现报错
>library(rms)
载入需要的程辑包:Hmisc
Error: package or namespace load failed for ‘Hmisc’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
载入了名字空间‘xfun’ 0.25,但需要的是>= 0.29
Error: 无法载入程辑包‘Hmisc’
根据提示需要将xfun包升级,直接重新安装就行。
>install.packages('xfun')
trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.0/xfun_0.30.zip'
Content type 'application/zip' length 398541 bytes (389 KB)
downloaded 389 KB
package ‘xfun’ successfully unpacked and MD5 sums checked
可以看到安装的xfun是0.30,大于0.29,再重新载入rms包就正常了。
>library(rms)
载入需要的程辑包:Hmisc
载入程辑包:‘Hmisc’
The following objects are masked from ‘package:base’:
format.pval, units
载入需要的程辑包:SparseM
载入程辑包:‘SparseM’
The following object is masked from ‘package:base’:
backsolve