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

2018-08-07 Thread luke-tierney
In R 3.5 and later you should not need to gc() -- that should happen automatically within the connections code. Nevertheless, I would recommend redesigning your approach to avoid hanging onto open file connections as these are a scarce resource. You can keep around your temporary files without ha

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

2018-08-07 Thread Jan van der Laan
Dear Uwe, (When replying to your message, I sent the reply to r-devel and not r-package-devel, as Martin Meachler suggested that this thread would be a better fit for r-devel.) Thanks. In the example below I used rm() explicitly, but in general users wouldn't do that. One of the reasons fo