Re: [R] "use of NULL environment is defunct" when trying to lock a reference class

2018-08-28 Thread Ivan Krylov
Hi Eric, Thank you for your answer! On Mon, 27 Aug 2018 21:48:50 +0300 Eric Berger wrote: > you might want to consider the more recent R6 package Indeed, R6 has private fields which fits my idea of an object with mutable state even better. My original problem seems to be solved and I'm

Re: [R] "use of NULL environment is defunct" when trying to lock a reference class

2018-08-27 Thread Eric Berger
Hi Ivan, Unfortunately I cannot answer your question. However, I do have quite a bit of experience using R's reference classes and you might want to consider the more recent R6 package. It provides R6 classes which have advantages over reference classes. See for example: 1. Hadley Wickham on R6

[R] "use of NULL environment is defunct" when trying to lock a reference class

2018-08-27 Thread Ivan Krylov
Hi! I'm trying to create a persistent memoising class with a destructor and an option to evaluate cache misses in parallel. I want to lock all its fields because it doesn't make sense to change them after the filename, the environment object and the function are set in the object. (I'm not sure