Understand the devtools 'Conscious Uncoupling' architecture
mainWhile devtools provides a single interface for package development, it is composed of several specialized, smaller packages. For day-to-day development, it is recommended to use library(devtools) to load all tools at once.
However, if you are building your own package or a deployed application, you should depend on the specific underlying packages directly rather than depending on devtools.
Core underlying packages:
testthat: Writing and running tests (test())roxygen2: Documentation (document())pak: Installing packages (pak::pak())pkgbuild: Building binary packages (build())pkgload: Simulating package loading (load_all())rcmdcheck: Running R CMD check (check())revdepcheck: Running checks on reverse dependencies (revdep_check())sessioninfo: R session info (session_info())usethis: Automating package setup (use_test())