问题
I'm trying to load the party package in R. I have all the relevant dependencies installed, but when I type library(party)
, I get the error:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : object 'vI' not found
Error: package or namespace load failed for ‘party’
I've never seen an error like this when loading a package before, and I'm really at a loss. Any help would be greatly appreciated.
回答1:
Sys.getenv("vI_HOME")
if(Sys.getenv("vI_HOME")!="") Sys.setenv(vI_HOME="")
library("party")
回答2:
Please install party package separately. So use:
install.packages("party", dependencies=TRUE)
来源:https://stackoverflow.com/questions/23958161/object-not-found-error-when-loading-party-package-in-r