Learn R Programming

xfun (version 0.48)

broken_packages: Find out broken packages and reinstall them

Description

If a package is broken (i.e., not loadable()), reinstall it.

Usage

broken_packages(reinstall = TRUE)

Value

A character vector of names of broken package.

Arguments

reinstall

Whether to reinstall the broken packages, or only list their names.

Details

Installed R packages could be broken for several reasons. One common reason is that you have upgraded R to a newer x.y version, e.g., from 4.0.5 to 4.1.0, in which case you need to reinstall previously installed packages.