| update_pkg | R Documentation |
Update R packages from CRAN, GitHub, or Bioconductor. Supports full updates, source-specific updates, or targeted package updates. Automatically handles version compatibility checks and respects mirror settings.
update_pkg(pkg = NULL, source = NULL, ...)
pkg |
Character vector. Package name(s) to update. For GitHub, use
|
source |
Character. Package source: "CRAN", "GitHub", or "Bioconductor". Optional if updating all installed CRAN and Bioconductor packages. |
... |
Additional arguments passed to |
NULL (invisibly). Side effect: updates packages.
## Not run:
# Update all CRAN + Bioconductor packages:
update_pkg()
# Update all CRAN packages only:
update_pkg(source = "CRAN")
# Update specific package:
update_pkg("ggplot2", source = "CRAN")
# Update GitHub package:
update_pkg("hadley/ggplot2", source = "GitHub")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.