| 1 |
skip_if_not_installed("modeltests") |
| 2 |
library(modeltests) |
| 3 |
|
| 4 |
test_that("augment.loess", { |
| 5 |
check_arguments(augment.loess) |
| 6 |
|
| 7 |
fit <- loess(mpg ~ wt, mtcars) |
| 8 |
|
| 9 |
check_augment_function( |
| 10 |
aug = augment.loess, |
| 11 |
model = fit, |
| 12 |
data = mtcars, |
| 13 |
newdata = mtcars |
| 14 |
) |
| 15 |
}) |