tests/testthat/test_graphics.R

context("Test Graphics")
library(mpcmp)
data("attendance")
M.attendance <- glm.cmp(daysabs~ gender+math+prog, 
                        data=attendance)
test_that("Test gg_plot", 
          { 
            expect_length(gg_plot(M.attendance, which = 1:8), 8)
            expect_output(gg_plot(M.attendance, which=9), 
                          NULL)
          })

Try the mpcmp package in your browser

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

mpcmp documentation built on Oct. 26, 2020, 9:07 a.m.