R Packages, Abridged

"Advanced R" by Hadley Wickham is widely considered the best resource to improve your knowledge at building an R package. This guide is designed to give you the most essential parts of R Packages so that you can get going right away. It still will take a long time, but not as long.

Trivia Exercises

What is the difference between devtools::install_github and install.packages?

What is the difference between Suggests and Imports?

What is the importance of dontrun?

Why do packages have versions?

What does moving from v1.0.1 to v2.0.0 mean? What does moving from v1.0.1 to v1.0.2 mean?

What does v1.0.1.9000 mean?

Simulation Exercise

Write a package with a function called mean_impute that takes a vector that can contain NAs and returns a vector with the NAs imputed with the mean of that vector. Make your package available open source on your GitHub so people can use it!