Problems trying to install package in R

假如想象 提交于 2019-12-11 11:10:35

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!