cpp11 icon indicating copy to clipboard operation
cpp11 copied to clipboard

`cpp11::function` does not protect its underlying `SEXP`

Open paleolimbot opened this issue 1 year ago • 1 comments

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!

paleolimbot avatar Oct 17 '22 14:10 paleolimbot