Packages (How to make them?)
Courses & Tutorials Only
How to write your own R package and publish it on CRAN
By Cosima Meyer
Added Fri Apr 28th, 2023
What is this?
Excerpt from site: While there exist many great resources for learning how to write a package in R, we found it difficult to find one all-encompassing guide that is also easily accessible for beginners. This tutorial seeks to close this gap: we will provide you with a step-by-step guide — seasoned with new and helpful packages that are also inspired by presentations at the recent virtual European R Users Meeting e-Rum 2020.
- Link to the datasets: https://www.mzes.uni-mannheim.de/socialsciencedatalab/article/r-package/
R package primer a minimal tutorial
By Karl Broman
What is this?
Minimal tutorial about how to write your very own R package.
- Link to tutorial here: https://kbroman.org/pkg_primer/
- Lunk to repo here: https://github.com/kbroman/pkg_primer
Writing an R package from scratch
What is this?
Excerpt from blog: This tutorial is not about making a beautiful, perfect R package. This tutorial is about creating a bare-minimum R package so that you don’t have to keep thinking to yourself, “I really should just make an R package with these functions so I don’t have to keep copy/pasting them like a goddamn luddite.” Seriously, it doesn’t have to be about sharing your code (although that is an added benefit!). It is about saving yourself time. (n.b. this is my attitude about all reproducibility)
- .Link to blog: https://hilaryparker.com/2014/04/29/writing-an-r-package-from-scratch/