cpp11
cpp11 copied to clipboard
`cpp11::function` does not protect its underlying `SEXP`
trafficstars
Perhaps this was an intentional design decision; however, the behaviour was surprising to me since the other cpp11::<wrapper around an sexp> do this. Maybe it's too expensive to protect here, or maybe just add a note to the documentation? Happy to PR either of those in or close if this behaviour is intentional!
The PR where I ran into this is here: https://github.com/apache/arrow/pull/14436