Debian Codegraph @

tests/testthat/test-stats-smooth.spline.R

raw
1 skip_if_not_installed("modeltests")
2 library(modeltests)
3
4 fit <- smooth.spline(mtcars$wt, mtcars$mpg)
5
6 test_that("smooth.spline tidier arguments", {
7 check_arguments(glance.smooth.spline)
8 check_arguments(augment.smooth.spline)
9 })
10
11 test_that("glance.smooth.spline", {
12 gl <- glance(fit)
13 check_glance_outputs(gl)
14 })
15
16 test_that("augment.smooth.spline", {
17 check_augment_function(
18 aug = augment.smooth.spline,
19 model = fit,
20 data = mtcars,
21 strict = FALSE
22 )
23 })