我在成功安装包 GPareto 之后,无法使用 library()
函数加载:
> library(GPareto)
载入需要的程辑包:DiceKriging
载入需要的程辑包:emoa
Error: package or namespace load failed for ‘GPareto’ in readRDS(nsInfoFilePath):
unknown input format
> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936 LC_MONETARY=Chinese (Simplified)_China.936
[4] LC_NUMERIC=C LC_TIME=Chinese (Simplified)_China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] emoa_0.5-0.1 DiceKriging_1.6.0 mco_1.15.6
loaded via a namespace (and not attached):
[1] compiler_4.1.0 parallel_4.1.0 tools_4.1.0 scatterplot3d_0.3-41 fortunes_1.5-4
有人推荐了SO上的解决方案:https://stackoverflow.com/questions/6473831/readrdsfile-in-r
看得懂的试过了没有用、还有一些方式看不懂,比如:
Run find /usr/local/lib/R/site-library/ /usr/lib/R/library/ /usr/lib/R/site-library/ ~/.local/lib/ -iname '*rds' -a -size 0 and then delete the files found.
也重新手动删除与加载此包,均无法解决问题,请大家支支招!