Re: [Rd] Run garbage collector when too many open files

2018-08-07 Thread luke-tierney
On Tue, 7 Aug 2018, Jan van der Laan wrote: Dear Luke, Thanks. See below On 07-08-18 17:07, luke-tier...@uiowa.edu wrote: In R 3.5 and later you should not need to gc() -- that should happen automatically within the connections code. Could you elaborate on what has changed in R 3.5? As fa

Re: [Rd] Run garbage collector when too many open files

2018-08-07 Thread Jan van der Laan
Dear Luke, Thanks. See below On 07-08-18 17:07, luke-tier...@uiowa.edu wrote: In R 3.5 and later you should not need to gc() -- that should happen automatically within the connections code. Could you elaborate on what has changed in R 3.5? As far as I can tell my problem also occurs in R 3

[Rd] Run garbage collector when too many open files

2018-08-07 Thread Jan van der Laan
In my package [1] I open handles to temporary files from c++, pointer to the objects containing those handles are returned to R as external pointer objects. The files are deleted when the corresponding R-object is deleted and the garbage collector runs: a <- lvec(10, "integer") rm(a) Then