tests/test-qkplot.R

library(qwraps2)

# error is non-survfit object is passed to qkmplot_bulid_data_frame
fit <- lm(mpg ~ wt, data = mtcars)
test <- tryCatch(qkmplot_bulid_data_frame(fit), error = function(e) e)
stopifnot(inherits(test, "error"))

Try the qwraps2 package in your browser

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

qwraps2 documentation built on Nov. 10, 2023, 1:06 a.m.