paleolimbot commented on PR #35398:
URL: https://github.com/apache/arrow/pull/35398#issuecomment-1534758976

   How about:
   
   ```r
   # At the package top level
   s3_state <- new.env(parent = emptyenv())
   s3_state$initialized <- FALSE
   
   s3_init <- function(...) {
     if (s3_state$initialized) {
       return()
     }
   
     # ...
   }
   
   # ...
   s3_bucket <- function(...) {
     s3_init()
     # ...
   }
   ```
   
   (Apologies if this doesn't fix the problem...just spitballing!)


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