its time for an update for install.packages!
Yann Coh <[email protected]> Tue, 3 Feb 2026 16:30:05 -0400
| Newsgroups | gmane.comp.lang.r.general |
|---|---|
| Message-ID | <CAD_W9NA0HQ4NyQyFJe+=Jo-vL=mjbBtwuzUU_wb5TmALFan6Bw@mail.gmail.com> |
Hey Core,
followed by my Bluesky post
<https://bsky.app/profile/yannco.bsky.social/post/3mdy4rlios226>,
I felt like this was such a simple, yet required change!
Let's default to using pak when prompted or when running old scripts with
install.packages.
```r
.utils_install_packages <- utils::install.packages
install.packages <- function(pkgs, ...) {
if (requireNamespace("pak", quietly = TRUE)) { pak::pkg_install(pkgs, ...)
}
else { .utils_install_packages(pkgs, ...) }
}
```
btw, util's home help page shows the r-core email address as maintainer,
and the description file shows r-help
--
Yann Cohen
🌐 www,yann-dev,io <https://iamyannc.github.io/Yann-dev>
📞 +596 696 66 58 93 <https://wa.me/596696665893>
[[alternative HTML version deleted]]