Skip to content

Commit

Permalink
avoid serializing cpp11 preserve xptr
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Oct 28, 2020
1 parent 6d429d8 commit 0426d3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpp/r/R/Tools.R
Expand Up @@ -179,7 +179,8 @@ environment(.rs.Env[[".rs.addFunction"]]) <- .rs.Env
# contain recursive R objects which cause crashes when serialized
#
# https://github.com/rstudio/rstudio-pro/issues/2052
opt$cpp11_preserve_env <- NULL
opt$cpp11_preserve_env <- NULL
opt$cpp11_preserve_xptr <- NULL

# first write to sidecar file, and then rename that file
# (don't let failed serialization leave behind broken workspace)
Expand Down

0 comments on commit 0426d3c

Please sign in to comment.