I became curios regarding the uncoupling of devtools. From this blogpost
devtools will remain the primary package developers will interact with when writing R packages; it will just rely on these other packages internally for most of the functionality.
my impression was that you can use devtools as before but internally devtools uses other packages like usethis. However, I got a deprecation warning. I got interested about the reasoning and future plans.
utils::packageVersion("devtools")
#> '2.0.1'
devtools::use_package("tibble", type = "Suggests")
#> Setting active project to ...
#> ✔ Adding 'tibble' to Suggests field in DESCRIPTION
#> ● Use `requireNamespace("tibble", quietly = TRUE)` to test if package is installed
#> ● Then use `tibble::fun()` to refer to functions.
#> Warning message:
#> 'devtools::use_package' is deprecated.
#> Use 'usethis::use_package()' instead.
#> See help("Deprecated") and help("devtools-deprecated").
This function in the code: https://github.com/r-lib/devtools/blob/b72cf4a3a5d5efe1452e44abbb4bf2b87e98b691/R/infrastructure.R#L78
Is this only happening to usethis functions and other (sessioninfo, pkgload etc) won't be deprecated? Related new item: https://github.com/r-lib/devtools/blame/master/NEWS.md#L87
Any comment is much appreciated!