tests/testthat/test_generics_invisible.R

context("return value of generics")
obj <- kdensity(precip, start = "gaussian")
expect_identical(print(obj), obj)
expect_identical(summary(obj), obj)
expect_identical(plot(obj), obj)
expect_identical(plot(obj, plot_start = TRUE), obj)
expect_identical(points(obj), obj)
expect_identical(lines(obj), obj)

Try the kdensity package in your browser

Any scripts or data that you put into this service are public.

kdensity documentation built on April 4, 2025, 2:33 a.m.