So in other words, I have the package DBI
installed twice, in two library paths (.libpaths()[1]
and .libpaths()[3]
). I use the Rstudio server on Ubuntu 22.
Am trying to remove the older version from .libpaths()[3]
but am unsuccessful.
Tried the following:
- Restarted R so the package is not loaded in the current session.
- Ran the command:
remove.packages("DBI",lib = .libPaths()[3])
.
Repeat the above steps many times. Refreshed the package window of rstudio, and also checked using find.package("DBI",lib.loc = .libPaths()[3])
But the package still is installed in both libpaths.
See Rstudio screeshot.
My Rstudio version:
RStudio 2022.07.1+554 "Spotted Wakerobin" Release (7872775ebddc40635780ca1ed238934c3345c5de, 2022-07-22) for Ubuntu Bionic Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
My Ubuntu version:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu Description: Ubuntu 20.04.4
LTS Release: 20.04
Codename: focal