View source: R/extension_check.R
recipes_extension_check | R Documentation |
This is a developer tool intended to help making sure all methods for each step have been created.
recipes_extension_check(
pkg,
exclude_steps = character(),
exclude_methods = character()
)
pkg |
Character, name of package containing steps to check |
exclude_steps |
Character, name of steps to exclude. This is mostly used to remove false positives. |
exclude_methods |
Character, which methods to exclude testing for. Can take the values "prep", "bake", "print", "tidy", and "required_pkgs". |
It is recommended that the following test in placed in packages that add recipes steps to help keep everything up to date.
test_that("recipes_extension_check", { expect_snapshot( recipes::recipes_extension_check( pkg = "pkgname" ) ) })
cli output
developer_functions
recipes_extension_check(
pkg = "recipes"
)
recipes_extension_check(
pkg = "recipes",
exclude_steps = "step_testthat_helper",
exclude_methods = c("required_pkgs")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.