Skip to content
R for the Rest of Us Logo

Resources

This carefully curated collection of resources will help you find packages and learning resources to help you on your R journey.

Screenshot of Writing an R package from scratch

Writing an R package from scratch

This tutorial provides a step-by-step guide on how to create an R package from scratch using the usethis package. It covers topics such as package setup, adding functions, and function documentation.

Go to Resource
Screenshot of Writing beautiful code

Writing beautiful code

This content is a comprehensive guide on writing aesthetically pleasing and maintainable code, with a focus on R programming. The author, Ma"elle Salmon, explains the importance of beautiful code for readability and collaboration. The guide includes practical tips and tricks, and emphasizes adherence to coding styles, proper spacing, avoiding overly long lines, and creating descriptive functions. Additionally, the author discusses reducing unnecessary comments and documenting functions effectively. The guide also covers using tools like {styler} for automatic formatting and encourages learning from others' code to extend one's R vocabulary.

Go to Resource
Screenshot of You ‘tidyr::complete()’ me

You ‘tidyr::complete()’ me

Luis D. Verde Arregoitia's article demonstrates using the 'complete()' function from the tidyr package to expand a data frame's sequences based on start and end values within columns. The example showcases how to pivot data and use 'complete()' and 'full_seq()' functions for filling in sequences of days for different categories, while repeating longitude values accordingly. This technique is useful for managing tabular data in wide format, facilitating transformations into a long format ready for analysis. The article is instructional for those working with R in ecology, conservation, and biogeography, focusing on data wrangling challenges.

Go to Resource
Screenshot of You're Already Ready: Zen and the Art of R Package Development

You're Already Ready: Zen and the Art of R Package Development

R packages make it easier to write robust, reproducible code, and modern tools in R development like usethis make it easy to work with packages. In this video, Malcolm Barrett discusses why your project is already an R package, why you’re already an R package developer, and why you already have the skills to walk the path of development.

Go to Resource
Screenshot of Your first R package in 1 hour

Your first R package in 1 hour

This blog post provides a step-by-step guide on how to create an R package in just one hour. It covers the use of devtools and usethis packages to automate folder structure and file creation in package development.

Go to Resource