2017-06-21 180 views
0

嗨,我卸载了一个软件包,但它仍然可以访问,有人可以帮忙吗?谢谢你!无法卸载软件包

> remove.packages("RODBC") 
Removing package from ‘E:/R/R-3.3.3/library’ 
(as ‘lib’ is unspecified) 

> library(RODBC) 
# no error. it's still there 

> attr(sessionInfo()$otherPkgs$RODBC, "file") 
[1] "E:/R/R-3.3.3/library/RODBC/Meta/package.rds" 
# it really is there... 


> remove.packages("dplyr") 
Removing package from ‘E:/R/R-3.3.3/library’ 
(as ‘lib’ is unspecified) 
> library(dplyr) 
Error in library(dplyr) : there is no package called ‘dplyr’ 
# this guy is removed 


> .Library 
[1] "E:/R/R-3.3.3/library" 

> .libPaths() 
[1] "E:/R/R-3.3.3/library" 

是否有可能包装RODBC被使用,因此无法删除?

+0

什么是你'.libPaths()'? –

+0

谢谢@ HongOoi请参阅OP的更新 –

+0

'attr(sessionInfo()$ otherPkgs $ RODBC,“file”)''在你卸载它之后又返回被称为库吗?删除工作?有关正在使用的文件没有错误? – MrFlick

回答

1

这发生在我之前,我想我所做的是字面上去看看我的电脑上,从文件浏览器包的文件夹,并手动删除它