在使用加载MASS包时报错:Package ‘MASS’ version 7.3.55 cannot be unloaded:
library("MASS")
Package ‘MASS’ version 7.3.55 cannot be unloaded:
Error in unloadNamespace(package) : namespace ‘ggpubr’ is imported by ‘immunarch’ so cannot be unloaded
解决办法:
1.方法一我试过但是会显示“ggpubr”该命名空间不存在
unloadNamespace(ggpubr)
于是尝试了方法二,简单粗暴,重启R软件,加载成功!!!!