r-lib / pak

A fresh approach to package installation
https://pak.r-lib.org
642 stars 56 forks source link

pacman::p_load for pak? #594

Closed holgerbrandl closed 4 months ago

holgerbrandl commented 4 months ago

With pacman package manager https://github.com/trinker/pacman one could easily load a package and it would install it if the library was yet missing locally:

pacman::p_load(ggplot2)
ggplot(iris, aes(Sepal.Width, Sepal.Length)) + geom_point()

In the same spirit there was pacman::p_load_gh("ricardo-bion/ggradar") to optionally install and then load packages from github.

Could such a convenience function(s) be added to pak as well?

gaborcsardi commented 4 months ago

This is a duplicate of #196, and I think don't think that this is a good idea, sorry.