Create your own R Package!
This presentation was given by Aubrey Odom in lab meeting on 6/26/25.
You can download the powerpoint from GitHub here: Download
📦 What This Presentation Covers
This presentation introduces the fundamentals of creating R packages, with a focus on bioinformatics tool development. It walks through the structure, tools, and best practices for building, documenting, and sharing reusable R code in a standardized, reproducible format.
📘 What You'll Learn
- What an R package is
- When and why to package your R code
- The core and optional components of an R package (e.g., R/, DESCRIPTION, man/, tests/)
- How to create a package using devtools and RStudio
- How to document functions with roxygen2 and generate help files
- Managing dependencies and exports with DESCRIPTION and NAMESPACE
- Best practices for coding style, error handling, and using example data