Congratulations!
Developing R Packages
Jasmin Ludolf
Content Developer
Chapter 1 review
- R package structure: directories,
DESCRIPTION
, NAMESPACE
usethis::create_package()
- Including data in the package
- Writing R functions for package development
- Installing and testing the package locally
Chapter 2 review
- Compare packages vs. scripts
- Choose informative package name
- Check package name availability on CRAN
- Explore different license options
usethis::use_mit_license()
- Load package components and check packages
devtools::load_all()
and devtools::check()
Chapter 3 review
- Help file components and exported functions
- Importance of examples in documentation
- Creating function examples with
roxygen2
- Understanding purpose of vignettes
- Browsing and assessing vignettes
- Designing and building vignettes
usethis::use_vignette()
and devtools::build_vignettes()
Chapter 4 review
- Recognizing and creating unit tests
usethis::use_testthat()
and usethis::use_test()
- Exploring expect statements for testing
testthat::expect_equal()
andtestthat::expect_error()
- Organizing and running unit tests
- Updating package metadata and documentation
- Discussing package versioning
- Running a package check
Next steps
- Sharing your package online/with others
- Using
devtools::release()
for package release to CRAN
- Implementing continuous integration for your package

Hooray!
Developing R Packages
Preparing Video For Download...