can't uninstall packages

YJZ picture YJZ · Jun 21, 2017 · Viewed 11.3k times · Source

Hi I uninstalled a package but it still look accessible, can somebody help please? Thank u!

> 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"

Would it be possible that the package RODBC was in use so that can not be removed?

Answer

sweetmusicality picture sweetmusicality · Jun 21, 2017

this has happened to me before and I think what I did was literally go find the package's folder from file explorer on my computer and manually delete it