Get startedGet started for free

Congratulations!

1. Congratulations!

Well done! You've made it to the end of this course. Let's recap what you learned.

2. Chapter 1 review

In Chapter 1, you learned about R package architecture, including key directories like R and man, and essential files such as DESCRIPTION and NAMESPACE. You added data, practiced writing functions and saving them, and installed and tested your package locally.

3. Chapter 2 review

In Chapter 2, you explored the benefits of creating packages over using scripts. You learned to choose an informative package name, check name availability on CRAN, and understand different licenses. Additionally, you covered package loading and checking, including check errors, warnings, and notes.

4. Chapter 3 review

In the third chapter, you explored the importance of documentation for R packages, including help files and function examples using roxygen2. You learned about the purpose of vignettes and how to browse and assess existing vignettes. Finally, you discovered the design and building of vignettes.

5. Chapter 4 review

In the final chapter, you learned about testing and preparing your package for release. You explored unit testing, using expect statements. You reviewed best practices for tests, and finalized your package by updating metadata, documenting data files, and running a package check.

6. Next steps

Next steps could include sharing your package online for version control and collaboration, allowing you to store different versions and control their release. Putting your package on CRAN using devtools' release function is another recommended step. You can also implement continuous integration to automate testing and receive feedback on suggested code changes while ensuring all tests pass and checks are completed.

7. Hooray!

Best wishes to you on your continued package development and learning!