Automatically โจ, and not ๐ง
๐ค
Yes and no!
styler
. Better paired with version control.
roxygen2
NAMESPACE generation. Switching: Rd2roxygen
.
pkgdown
. Work on reference index & navbar!
usethis
e.g.ย usethis::use_test()
.
Right after my talk (not now ๐), but then?
Run something every time you make a change
“The idea behind continuous integration is that CI will automatically run R CMD check (along with your tests, etc.) every time you push a commit to GitHub. You don’t have to remember to do this; CI automatically checks the code after every commit.” Julia Silge
Travis, GitHub Actions, Circle CI, tic
package…
How to learn?
Julia Silge’s post - Jim Hester’s GitHub Actions talk - usethis
helpers
LIFE HACK: My go-to strategy for getting Travis builds to work is snooping on *other* people's .travis.yml files. Shoutout today to the tidyr .travis.yml for solving my problem! #rstats ๐
— Julia Silge (@juliasilge) December 12, 2019
Couple a thing (R CMD check? pkgdown site building?) to
… each commit,
… every Monday,
… applying a label to a pull request?
precommit
R package – Python precommit framework
Setup hooks
Hooks for styling, parsable R code, spell checks, etc.
๐คซ You can still skip the checks.
CRAN release! ๐ Checks on different platforms, URLs, spell checks…
usethis::use_release_issue()
creating a GitHub issue with important items.
Risk of spending too much time on meta-work.
As a beginner, easier to create good habits. ๐
You want to know what is going on.
You want to build on the function/package for your own goals.
You’re just curious.
You need examples of a thing in the wild.
Mirrors of CRAN packages and R-source, on GitHub.
And trying things out!
Fork, clone, and explore!
Podcast episode “Learning a new codebase”, with Patricia Aas
Blog posts: digested information.
R-hub blog, rOpenSci blog and tech notes
Your blog?
Fora: Help and learn.
R-package-devel, RStudio community “package development” category, rOpenSci forum.
๐ก Manage your subscriptions & involvement wisely!
Transparent, constructive, non adversarial and open review process for packages in scope.
Interesting for authors, and reviewers!
Online book of best practice for the reviews and package development.
๐ Even more review and best practice on the way! rOpenSci Statistical Software Peer Review
See also JOSS, R Journal, JSS.
Write them in the shared doc.
05:00