问题
I am having problems trying to install the nnet package in R. The download seems to be ok, but when I load the library it states
namespace ‘nnet’ is imported by ‘car’, ‘effects’ so cannot be unloaded
In addition: Warning message:
package ‘nnet’ was built under R version 3.2.5
Error in library(nnet) : Package ‘nnet’ version 7.3.11 cannot be unloaded
I tried reading other topics which suggest using remove.packages on car and effects. However I tried this and I am still unable to install
Thanks for the help
回答1:
Try unloadNamespace('effects')
before trying library(nnet)
.
来源:https://stackoverflow.com/questions/37031457/problems-trying-to-install-package-in-r