usethis icon indicating copy to clipboard operation
usethis copied to clipboard

Re-consider `install_*()` functions, in light of pak

Open hadley opened this issue 2 years ago • 3 comments

Should the README templates switch to using pak? Are there other places we recommend devtools::install_github() that should switch to pak?

hadley avatar Jan 11 '23 21:01 hadley

Just consulted @gaborcsardi. For now, let's keep devtools::install_github() in the template. In terms of orienting more towards pak, we lean towards having install_github() switch from remotes to pak in the not-too-distant future.

jennybc avatar Feb 01 '23 20:02 jennybc

Another idea from @gaborcsardi: perhaps devtools gains a more generic install_remote()-type function where the different sources are differentiated via pak's source DSL instead of via a bunch of different functions.

https://pak.r-lib.org/reference/pak_package_sources.html#shorthands

jennybc avatar Feb 01 '23 20:02 jennybc

I still think we should consider at least switching to suggest pak for tidyverse packages, just as a way as exposing more people to it.

hadley avatar Feb 01 '23 21:02 hadley

@gaborcsardi Are you feeling more ready to put pak::pak() in usethis's README templates? I am.

jennybc avatar Jul 23 '24 19:07 jennybc