R 实用命令 2

1. how to temporarily unload the packages in R

> library(Daim)
载入程辑包:‘Daim’
The following objects are masked from ‘package:pROC’:
   auc, roc
Warning message:
程辑包‘Daim’是用R版本3.4.4 来建造的 
> roc
function (x, ...) 
UseMethod("roc")
<environment: namespace:Daim>
> library(pROC)
> roc
function (x, ...) 
UseMethod("roc")
<environment: namespace:Daim>

use the unloadNamespace("Daim") to unload the Daim package

> unloadNamespace("Daim")
> roc
function (...) 
{
    UseMethod("roc")
}
<environment: namespace:pROC>

Daim package has been removed.

posted @ 2018-04-27 17:32  何帅  阅读(224)  评论(0编辑  收藏  举报