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

2023-03-13 Thread Suharto Anggono Suharto Anggono via R-devel
With  if (!j--) {  R_CheckUserInterrupt();  j = 1;  } as in current R devel (r83976), j goes negative (-1) and interrupt is checked every 10001 instead of 1. I prefer  if (!--j) {  R_CheckUserInterrupt();  j = 1;  } . In current R devel (r83976), if EOF is reach

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

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

2023-02-11 Thread Ivan Krylov
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 values of skip: I cannot even

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

2023-02-10 Thread Spencer Graves
Hello, All: 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 values of skip: I cannot even interrupt it; I must kill R. Below please find