Re: [Rd] On optimizing `R_NewEnv()`

2023-03-10 Thread Tomas Kalibera
On 2/8/23 21:51, Davis Vaughan via R-devel wrote: Hi all, I really like the addition of `R_NewEnv()` back in 4.1.0 https://github.com/wch/r-source/blob/625ab8d45f86f65561e53627e1f0c220bdc5f752/src/main/envir.c#L3619-L3630 I have a use case where I'm likely to call this function a large number

Re: [Rd] scan(..., skip=1e11): infinite loop; cannot interrupt

2023-03-10 Thread Tomas Kalibera
On 2/11/23 09:33, Ivan Krylov wrote: On Fri, 10 Feb 2023 23:38:55 -0600 Spencer Graves wrote: I have a 4.54 GB file that I'm trying to read in chunks using "scan(..., skip=__)". It works as expected for small values of "skip" but goes into an infinite loop for "skip=1e11" and similar large