inst/tinytest/test-sanity.R

source("helpers.R")
using("marginaleffects")

# error: supported model classes
model <- mtcars
class(model) <- "junk"
expect_error(slopes(model), pattern = "not supported")



rm(list = ls())

Try the marginaleffects package in your browser

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

marginaleffects documentation built on Oct. 20, 2023, 1:07 a.m.