Skip to content
R for the Rest of Us Logo

Learn to make an R package in less than 2 minutes

Have you ever wanted to create your own R package but thought it was too complicated? I used to think the same thing! But I recently learned how to create a simple theme package in R, and I want to show you just how easy it can be. So easy that I can demonstrate the process in just two minutes!

In this quick video, I walk you through the step-by-step process of creating your own R package. Here's what I cover:

  • Creating a new package project in RStudio

  • Setting up the package structure using the usethis package

  • Adding a custom ggplot theme function

  • Adding documentation

  • Setting up package dependencies

  • Creating a license

  • Installing and using your new package

Sign up for the newsletter

Get blog posts like this delivered straight to your inbox.

Let us know what you think by adding a comment below.

You need to be signed-in to comment on this post. Login.

David Keyes
By David Keyes
April 17, 2025

Sign up for the newsletter

R tips and tricks straight to your inbox.