# The xml2 pkg makes heavy use of external pointers
xptr <- xml2::read_xml("<foo><bar /></foo>")$node
assert_is_externalptr(xptr)
# This should fail
assertive.base::dont_stop({
assert_is_externalptr(NULL)
})
Run the code above in your browser using DataLab