Re: [R-pkg-devel] Run garbage collector when too many open files

2018-08-07 Thread Uwe Ligges
Why not add functionality that allows to delete object + runs cleanup code? Best, Uwe Ligges On 07.08.2018 14:26, Jan van der Laan wrote: In my package I open handles to temporary files from c++, handles to them are returned to R through vptr objects. The files are deleted then the corres

[R-pkg-devel] Run garbage collector when too many open files

2018-08-07 Thread Jan van der Laan
In my package I open handles to temporary files from c++, handles to them are returned to R through vptr objects. The files are deleted then the corresponding R-object is deleted and the garbage collector runs: a <- lvec(10, "integer") rm(a) Then when the garbage collector runs the file is