Chapter 5 Fundamental development workflows | R Packages (r-pkgs.org)
?
5.4 Test drive with load_all()
The load_all() function is arguably the most important part of the devtools workflow.
# with devtools attached and
# working directory set to top-level of your source package ...
load_all()
# ... now experiment with the functions in your package
load_all() is the key step in this “lather, rinse, repeat” cycle of package development:
- Tweak a function definition.
load_all()
- Try out the change by running a small example or some tests.
When you’re new to package development or to devtools, it’s easy to overlook the importance of load_all() and fall into some awkward habits from a data analysis workflow.