Authors

Damian Betebenner

Adam VanIwaarden

Overview

The packageSkeleton repository provides a streamlined template for setting up an R package, complete with an integrated Quarto website hosted on GitHub. This skeleton is designed to simplify the often daunting process of creating, maintaining, and distributing an R package, making GitHub an ideal platform for collaboration, version control, and sharing your work.

Whether you’re an experienced R developer or new to package development, this skeleton offers a robust starting point. The primary advantage of using this skeleton is that it handles much of the initial setup, allowing you to focus on personalizing the package to meet your specific needs. This includes: - Customizing the package name, - Adding your own functions, - Creating a website to document and showcase your work.

Why Create an R Package?

Creating an R package isn’t just about building tools for others—it’s about building something useful for you. By consolidating functions, data sets, and workflows you use regularly into a package, you streamline your own work. Additionally, your solutions may end up being valuable to others who work in similar domains.

This package skeleton encourages that mindset, helping you create something that is immediately useful in your own workflow while also providing a structure for sharing your work with the broader R community.

What You’ll Need

To get the most out of the package skeleton, a few foundational skills and concepts will be useful:

  • GitHub Basics: Familiarity with cloning repositories, making commits, and pushing changes is essential.
  • R and R Package Basics: Understand how R packages are structured and function.
  • Quarto Basics: Quarto will help you build documentation and websites for your package.
  • Package Content: Consider including:
    • Data cleaning functions,
    • Custom wrapper functions,
    • Data sets you frequently use,
    • Reused code from other open-source packages (with proper attribution).

Getting Started

We’ve provided a detailed vignette that walks you through the essential steps for setting up your own R package and Quarto website, including: 1. Cloning the repository and customizing it for your own package. 2. Setting up the Quarto website for documenting your functions and workflows. 3. Using GitHub for version control, collaboration, and package distribution.

Start building your R package today to make your work more efficient, organized, and shareable!