[Rd] Heap access across multiple calls from R to C++

2023-05-23 Thread pikappa.devel
Dear all, I have a question about maintaining state in native code during the lifetime of an object of R6Class type. The background is the following. I have a class derived from the standard model class of the R port of Keras, and I want to perform some calculations in native code using a third

Re: [Rd] Heap access across multiple calls from R to C++

2023-05-27 Thread pikappa.devel
Thanks a lot! Also, for suggesting using `.Call`. I will try all three and follow up on the relevant list if I hit a dead-end. Best wishes, Pantelis -Original Message- From: Dirk Eddelbuettel Sent: Wednesday, May 24, 2023 4:16 PM To: Ivan Krylov Cc: pikappa.de...@gmail.com; r-devel@r