Skip to content

devtools 2.4.0

Compare
Choose a tag to compare
@jimhester jimhester released this 09 Apr 13:13

Breaking changes and deprecated functions

  • The check_results() function has been removed.
    It was not used by any CRAN package, and much better alternatives are available in the rcmdcheck package.

  • pkgload::inst() is no longer re-exported (#2218).

  • test_file() has been renamed to test_active_file() and test_coverage_file() has been renamed to test_coverage_active_file() to avoid a name collision with testthat::test_file().
    The previous names have been soft deprecated in this release, they will be hard deprecated in the next release and eventually removed. (#2125)

Re-licensing

  • devtools is now released under a MIT license (#2326)

Minor improvements and fixes

  • build_readme() now supports readme files located in inst/README.Rmd, as intended (#2333)

  • build_vignettes() now creates more specific .gitignore entries (@klmr, #2317)

  • check() now only re-documents if you have a matching version of roxygen2 (#2263).

  • change_maintainer_email() now has a check to assess whether the email is actually changed.
    If the email is not changed, the code now stops such that an email is not accidentally sent to the wrong recipient. (@emilsjoerup, #2073)

  • run_examples(fresh = TRUE) again works without error (#2264)

  • The covr and DT packages have been moved from Imports to Suggests.
    They are only needed when running test_coverage() and test_coverage_active_file() so now you'll be prompted to install them when needed.

  • Switched to fs for all file system functions (#2331, @malcolmbarrett)

  • Now uses testthat 3.0.0 to power test(), test_active_file(), test_coverage(), and test_coverage_active_file().
    The major difference is that test_active_file() now generates a compact summary that takes up less space on the console.