Re: [Rd] How to locate references to an environment?

2023-05-24 Thread Antoine Fabri
380` here you'd easily find where it's referenced. If you have S4 objects in there you might want to try again in a few days since they're not supported yet. If the output is too big consider `construct_dump(list(O = O), "out.R")` Thanks, Antoine > Message: 1 > Date: Tue, 23 Ma

Re: [Rd] How to locate references to an environment?

2023-05-23 Thread Tomas Kalibera
On 5/23/23 20:29, Peter Meilstrup wrote: R developers, I am trying to track down a memory leak in my R package. I have a complex object O which comprises a lot of closures and such. Among which, the object uses an environment E to perform computations and keep intermediate values in. When O

Re: [Rd] How to locate references to an environment?

2023-05-23 Thread Duncan Murdoch
On 23/05/2023 2:29 p.m., Peter Meilstrup wrote: R developers, I am trying to track down a memory leak in my R package. I have a complex object O which comprises a lot of closures and such. Among which, the object uses an environment E to perform computations and keep intermediate values in.

[Rd] How to locate references to an environment?

2023-05-23 Thread Peter Meilstrup
R developers, I am trying to track down a memory leak in my R package. I have a complex object O which comprises a lot of closures and such. Among which, the object uses an environment E to perform computations and keep intermediate values in. When O closes/finishes with its task it nulls out