remove.package to uninstall the package.
To uninstall a package from a non-default library,
uninstall(pkg = ".", unload = TRUE, quiet = FALSE, lib = .libPaths()[])
The package to use, can be a file path to the package or a
package object. See
a character vector giving the library directories to remove the
packages from. If missing, defaults to the first element in