diff --git a/src/cpp/r/R/Tools.R b/src/cpp/r/R/Tools.R index 73bc7b9fa2d..9da9336cc25 100644 --- a/src/cpp/r/R/Tools.R +++ b/src/cpp/r/R/Tools.R @@ -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)