update_packages_addin: Download and install dependencies

View source: R/update-packages-addin.R

update_packages_addinR Documentation

Download and install dependencies

Description

When called in the repo of an R package, its package dependencies are inspected and the obsolete ones are updated. This function is a thin wrapper around remotes::update_packages(remotes::dev_package_deps()$package, dependencies=T). Unlike the 'Update' button in RStudio's 'Packages' panel, this function will (a) update from CRAN and remote sources like GitHub and (b) not attempt to install local packages that are unrelated to the current package.

Usage

update_packages_addin()

Note

This function only works if run inside a valid package. It reads the dependencies enumerated in the package's DESCRIPTION file.


OuhscBbmc/OuhscMunge documentation built on Dec. 5, 2024, 4:34 a.m.