{
  "name": "Base R functions used to find and uninstall an installed package",
  "description": "Compares the four base and utils R functions used to locate, inspect and remove installed packages: what each does, its key argument and that argument's documented default. Compiled from the R-devel manual pages for remove.packages, installed.packages, detach and .libPaths, read 2026-11-14.",
  "page": "https://casrai.org/guides/uninstall-package-in-r",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-20T17:25:00Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Function",
      "unit": "",
      "description": ""
    },
    {
      "name": "Package",
      "unit": "",
      "description": ""
    },
    {
      "name": "Purpose (per manual)",
      "unit": "",
      "description": ""
    },
    {
      "name": "Key argument",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented default",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Function": "remove.packages",
      "Package": "utils",
      "Purpose (per manual)": "Removes installed packages/bundles and updates index information as necessary",
      "Key argument": "lib",
      "Documented default": "First element of .libPaths()"
    },
    {
      "Function": "installed.packages",
      "Package": "utils",
      "Purpose (per manual)": "Returns a matrix with one row per installed package (columns include Package, LibPath, Version, Imports)",
      "Key argument": "lib.loc",
      "Documented default": "NULL (all known library trees)"
    },
    {
      "Function": ".libPaths",
      "Package": "base",
      "Purpose (per manual)": "With no arguments, returns the library trees R searches",
      "Key argument": "(none for the query form)",
      "Documented default": "Built at startup from R_LIBS, R_LIBS_USER and R_LIBS_SITE"
    },
    {
      "Function": "detach",
      "Package": "base",
      "Purpose (per manual)": "Removes a package from the search path; can attempt to unload its namespace",
      "Key argument": "unload",
      "Documented default": "FALSE (no unloading)"
    }
  ],
  "sources": [
    {
      "title": "R manual: remove.packages",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/utils/html/remove.packages.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "R manual: installed.packages",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/utils/html/installed.packages.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "R manual: detach",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/base/html/detach.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "R manual: .libPaths",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/base/html/libPaths.html",
      "accessed": "2026-11-14"
    }
  ]
}