Wiss. Koordination
Verena Kunz
Administrative Koordination
Claudia O'Donovan-Bellante
Bitte haben Sie einen Moment Geduld........
R Package Development
About
Veranstaltungsort:
Online via Zoom
Online via Zoom
Course duration:
10:30-15:30 CEST / UTC+2 (with an hour for lunch)
General Topics:
Course Level:
Format:
Software used:
Duration:
Language:
Fees:
Student: 220 €
Academic: 330 €
Commercial: 660 €
Additional links
Dozierende: Ella Kaye
Seminarinhalt
Packages are an essential part of the R ecosystem. As described by Hadley Wickham and Jenny Bryan in “R Packages” (2nd edition), packages are the fundamental units of reproducible R code. They include reusable R functions, the documentation that describes how to use them, and sample data. Putting your code or data into a package enables others to easily download and use it.
This course will teach you how to write your own R package. We will cover the whole process from setting up the package, adding functions and data, function and package documentation, testing, checking, publication (including to CRAN), promotion, and maintenance. We will also work with Git and GitHub, including using GitHub Actions to check a package, and to publish a package website.
We will build a package together during the course, through a combination of classroom instruction, live coding demos during which participants will code along, and hands-on exercises.
During the final session, participants will have an opportunity to work on their own R package, either something they already have in development, or get started with their own idea. Alternatively, they can reinforce the material taught in the course by creating a new package from a list of ideas suggested by the lecturer.
The course will be taught using R, in the RStudio IDE, and make use of packages from the r-lib ecosystem (especially devtools, usethis and testthat).
Organizational structure of the course
Each day will consist of two sessions, one in the morning (10:30-12:30) and one in the afternoon (13:30-15:30). The first five sessions will combine classroom instruction with live coding demos and hands-on exercises in which participants will practice all the steps involved in building an R package. Throughout the course, there will be plenty of opportunities for questions and discussion.
The final session is a lab in which participants will work on their own R package (either their own idea or one suggested by the lecturer). During that session, participants will have the opportunity for individual consultations with the lecturer, to get help on any aspect of the course content or the development of their own package.
Zielgruppe
You will find the course useful if:
- You have (or might have in the future) R code or data that you want to share with other people in a way that makes it easy for them to use
- You want to understand R packages, be able to create one yourself, or contribute to the development of other people's R packages
Lernziel
By the end of the course, you will:
- Be familiar with the advantages of R packages for sharing code, data, and documentation in a reproducible way
- Be able to create an R package, using the latest best practices
Voraussetzungen
- Experience using R (at the very least be confident writing R functions and installing and using R packages)
- Git installed on your computer and a GitHub account. Some familiarity with using Git and GitHub is beneficial but not required.
- R developer tools installed on your computer (instructions will be given in advance)
- Some experience using RStudio is beneficial but not required
Software requirements
- R version 4.5 (at least R >= 4.1)
- RStudio
- R packages devtools, usethis
- Git


