check_arguments: Check that tidying methods use allowed argument names

Description Usage Arguments Value See Also

View source: R/check_arguments.R

Description

Call this function to perform tests. If a tests fails, an informative error will be thrown. Otherwise silent.

Tests when strict = FALSE:

Tests when strict = TRUE:

Usage

1
check_arguments(tidy_method, strict = TRUE)

Arguments

tidy_method

A tidying method. For example: glance.Arima.

strict

Logical indicating whether the strict version of tests should be used. Defaults to TRUE.

Value

An invisible NULL. This function should be called for side effects, not return values.

See Also

testthat, testthat::expect_true()


modeltests documentation built on Jan. 16, 2021, 5:38 p.m.