paleolimbot commented on code in PR #33858:
URL: https://github.com/apache/arrow/pull/33858#discussion_r1167211185


##########
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:
   There is also `.onLoad()` defined twice here as written (you should be able 
to use the existing `.onLoad()` to register this hook if you can't in fact use 
`.onUnload()`.



-- 
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]

Reply via email to