R/load_all() (⌘⇧L) and try it in the consoleuse_test() then write teststest() (⌘⇧T) and iterate until they passdocument() (⌘⇧D) to update docscheck() (⌘⇧E) at the end(Windows/Linux: use Ctrl instead of ⌘)
In the past we’ve talked about the individual components in detail. I no longer think that’s worth teaching live. For example, you and your agent can figure out what expectations are available and how roxygen2 works in your own time 🙂
Try out the workflow with your compliments package.
compliment() function.R CMD check just as important but agents do a really good job at fixing any problems you find.Pick one (or more!) of the following:
farewell() that generates a random goodbyemood argument to compliment() so compliment("grumpy") gives a backhanded complimentPay attention! Try to read everything it does.
(This workflow advice can go in your personal AGENTS.md)
An ounce of prevention is worth a pound of cure
Read https://github.com/r-lib/testthat/issues/2334. Construct a minimal reprex, then write a brief plan for fixing the problem. Save your plan in plan.md.
… read and review the plan …
Execute the plan
I have always wanted a package that provided the stringr API but without the stringi dependency. (This makes the package less good at handling a wide range of international text cases, but would be worth it for many common package development tasks.) This is now easily in scope for a frontier model.
Work with your agent to come up with a design (no need to implement). What’s important to include? What can you skip? Start with an analysis of str_match() vs the base equivalents. Do you think you need a str_length() wrapper?
(Or tackle a more complex task from your own package)
R CMD checkGet your compliments package ready for submission to CRAN. What changed?