sf_is_valid() reports whether the object passed. sf_problems() returns
the problem messages. sf_object() returns the object that was validated.
Value
sf_is_valid() returns a single logical. sf_problems() returns a
character vector, empty when the object is valid. sf_object() returns
the validated object.
Examples
item <- sf_item("q1", "How satisfied are you?", type = "text")
instr <- sf_instrument("Demo", components = list(item))
v <- validate_sframe(instr, strict = FALSE)
sf_is_valid(v)
#> [1] TRUE
sf_problems(v)
#> character(0)