tests/testthat/test-mgcv-convenience.R

context("mgcv convenience functions")

test_that("mgcv convenience works", {
	
	library(mgcv)
	g <- gam(Sepal.Length ~ s(Sepal.Width) + s(Petal.Length), data=iris)
	expect_data_frame(s1d <- tidy_smooth(g), nrows=200, ncols=7)

})
adibender/pam documentation built on May 10, 2019, 5:54 a.m.