Closed HenrikBengtsson closed 1 year ago
I can image that can_be_marshalled()
could return:
TRUE
- definitely a "yes"FALSE
- definitely a "no"NA
- "maybe" / "it depends"The "maybe" is for cases where it's computationally expensive to find out whether an object can be marshalled. For instance, it might require walking a deeply nested structure that may contain a non-marshalable element. can_be_marshalled()
could have a argument for doing a deep scan, e.g. can_be_marshalled(x, full = TRUE)
.
Added marshallable()
. Will punt of optional methods/arguments for trying to resolve an NA
result.
Add a function,
can_be_marshalled()
, that can be used to test if an object can be marshalled or not.