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


##########
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:
   And if `.onUnload()` really isn't working make sure to put a comment in 
explaining that (so I don't forget about this and try to consolidate our 
namespace unload incorrectly)



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