Consider completing "Advanced R, Abridged" and "Git 101 Exercises" first.
"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.
--
- Read the following chapters of "R Packages" by Hadley Wickham:
- What are the three requirements when naming an R package?
- Why is it a bad idea to name your package with a "."?
- What is the difference between
devtools::install_github
andinstall.packages
? - What is the difference between
Suggests
andImports
? - 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?
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!