Asserts x is a survival::Surv object with added checks
assert_surv(
x,
len = NULL,
any.missing = TRUE,
null.ok = FALSE,
.var.name = vname(x)
)Object to check
If non-NULL checks object is length len
If FALSE then errors if there are any NAs in x
If FALSE then errors if x is NULL, otherwise passes
Optional variable name to return if assertion fails