r-lib/usethis

Transitioning from devtools to remotes

hhmacedo opened this issue · 4 comments

Currently, it is recommended to use remotes::install_github(). Therefore, I kindly suggest considering the update in the README file created by use_readme_rmd().

# install.packages("devtools")
devtools::install_github("{{{ github_spec }}}")

I think the new standard is to use pak

pak is a new recommended function, but it's a different standard of installation, remotes keeps the same standard and this is why I suggested remotes.

We are definitely not putting remotes here. This section of R Packages explains more about why we prefer to feature devtools in this sort of user-facing, workflow-y situation:

https://r-pkgs.org/setup.html#sec-setup-usage

We are switching to pak in these places:

https://github.com/search?q=pak%20path:README.Rmd%20org:tidyverse&type=code

Hi, @jennybc, firstly I want to apologize because I didn't see the #733 before.
Second, in my opinion, recommending devtools to install a package looks like recommending tidyverse to create a plot, and @eddelbuettel shared a similar opinion here. So I would be thankful if you could clarify why recommending devtools and not remotes just to install a package, I read the link but didn't get this answer.