If a package is broken (i.e., not loadable()), reinstall it.
broken_packages(reinstall = TRUE)A character vector of names of broken package.
Whether to reinstall the broken packages, or only list their names.
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.