Package Development Workshop (Day 1) - Your First Package
Details
We are thrilled to kick off our 2022 programming by welcoming Joyce Robbins to lead us through a two-day interactive package development workshop! This first module will guide participants through creation of their first package. Besides familiarity with R/RStudio and basic function writing, there are no prerequisites.
RSVP for this workshop is via Google Form: https://forms.gle/3rkuU8CZDMBrudfK8/. For more information about “Package Development Day 2 - Package Documentation,” see Meetup event https://www.meetup.com/rladies-newyork/events/283033569/. Participants are welcome to join either or both sessions.
Course materials are available here: https://github.com/jtr13/pkgdev/. Please note the “Pre-workshop setup” instructions for Windows and Mac.
Agenda for Day 1 (tentative):
Noon-1 pm: Lesson
- Where do R package come from?
- Why create R packages?
- Packages vs. scripts
- Creating initial package files
- Adding functions to the package
- Package states
- devtools::load_all(): testing and modifying functions
- devtools::document(): documenting your functions
1-1:30 pm: Lab with Joyce and teaching assistants Erin Grand and Emily Dodwell
