assert_is_raw(as.raw(1:10))
assert_is_a_raw(as.raw(255))
#These examples should fail.
dont_stop(assert_is_raw(c(TRUE, FALSE)))
dont_stop(assert_is_a_raw(as.raw(1:10)))
dont_stop(assert_is_a_raw(raw()))
Run the code above in your browser using DataLab