westonpace commented on code in PR #33858:
URL: https://github.com/apache/arrow/pull/33858#discussion_r1167211253
##########
r/R/arrow-package.R:
##########
@@ -147,6 +153,12 @@ supported_dplyr_methods <- list(
# Register extension types that we use internally
reregister_extension_type(vctrs_extension_type(vctrs::unspecified()))
+ # Registers a callback to run at session exit
+ .onLoad <- function(libname, pkgname) {
+ print(parent.env(environment()))
+ reg.finalizer(parent.env(environment()), finalize_s3, onexit=TRUE)
+ }
+
Review Comment:
Ah, ok. I will change to this pattern instead of `parent.env(environment())`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]