16 Epilogue
Congratulations on completing this comprehensive tutorial on creating R packages! Throughout this journey, you’ve gained essential skills and knowledge in package development.
You began by understanding the fundamentals of R packages and their importance in organizing and distributing R code efficiently. Using tools like devtools
and usethis
, you streamlined the package development process, from function and dataset creation to documentation and version control integration with Git and GitHub.
You practiced creating functions and datasets that were seamlessly integrated into your package. You set up version control with Git, securely managing changes and pushing your package code to GitHub for collaboration. With usethis::create_package()
, you initialized your package project, establishing its foundational structure and ensuring proper metadata and licensing.
You enhanced the transparency and usability of your package by documenting functions and datasets thoroughly using roxygen2
. Testing strategies were implemented to validate package functionality, ensuring reliability and correctness. You explored different methods to install your package locally and from GitHub, gaining insights into installation nuances.
Lastly, you created a professional package website using pkgdown
, showcasing your package’s documentation and vignettes effectively.
In conclusion, this tutorial has equipped you with the foundational knowledge and practical skills needed to develop, document, and share your own R packages.
After completing this tutorial chronologically, you’ll find it easier to revisit specific sections as needed for problem-solving and further refinement of your R packages.
As you continue your journey as an R developer, remember to explore advanced topics, engage with the R community for feedback and collaboration, and stay updated with the latest tools and best practices. Thank you for embarking on this learning journey with me!
Creating R Packages: A Step-by-Step Guide by Ville Langén is licensed under CC BY-SA 4.0