2017-06-21 167 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

這發生在我之前,我想我所做的是字面上去看看我的電腦上,從文件瀏覽器包的文件夾,並手動刪除它