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
    • usethis::use_data()
  • Writing R functions for package development
    • dump()
  • Installing and testing the package locally
    • devtools::install()
Developing R Packages

Chapter 2 review

  • Compare packages vs. scripts
  • Choose informative package name
  • Check package name availability on CRAN
    • available::available()
  • Explore different license options
    • usethis::use_mit_license()
  • Load package components and check packages
    • devtools::load_all() and devtools::check()
Developing R Packages

Chapter 3 review

  • Help file components and exported functions
  • Importance of examples in documentation
  • Creating function examples with roxygen2
    • roxygen2::roxygenize()
  • Understanding purpose of vignettes
  • Browsing and assessing vignettes
    • browseVignettes()
  • Designing and building vignettes
    • usethis::use_vignette() and devtools::build_vignettes()
Developing R Packages

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
    • testthat::test_that()
  • Updating package metadata and documentation
  • Discussing package versioning
  • Running a package check
    • devtools::check()
Developing R Packages

Next steps

  • Sharing your package online/with others
  • Using devtools::release() for package release to CRAN
  • Implementing continuous integration for your package

Star Award

Developing R Packages

Hooray!

Developing R Packages

Preparing Video For Download...