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] Versioning Rtools ARP entries

2023-03-13 Thread Tomas Kalibera
On 3/13/23 17:31, Daniel Possenriede wrote: Hi, If I am not mistaken, all Rtools 4.2 (and 4.3) revisions have the same ARP [1] entries, i.e. all report version 4.2.0.1 (or 4.3.0.1). This makes it difficult to determine the installed version (is it possible to determine the installed revision?)

[Rd] Versioning Rtools ARP entries

2023-03-13 Thread Daniel Possenriede
Hi, If I am not mistaken, all Rtools 4.2 (and 4.3) revisions have the same ARP [1] entries, i.e. all report version 4.2.0.1 (or 4.3.0.1). This makes it difficult to determine the installed version (is it possible to determine the installed revision?) and impossible for tools like winget [2] to upd

Re: [Rd] Adding support for S7 to base R

2023-03-13 Thread Ezra Tucker
I don't know if this is the right forum, but I'd like to ask an open-ended question about the goals of the S7 OOP system, which is, where do we see the ultimate future of object-oriented programming in R being? Do we see S7 eventually complementing S3 and S4 in "base" (in quotes because S4 is provi

Re: [Rd] Multiple Assignment built into the R Interpreter?

2023-03-13 Thread Gabor Grothendieck
The gsubfn package can do that. library(gsubfn) # swap a and b without explicitly creating a temporary a <- 1; b <- 2 list[a,b] <- list(b,a) # get eigenvectors and eigenvalues list[eval, evec] <- eigen(cbind(1,1:3,3:1)) # get today's month, day, year requir

Re: [Rd] Multiple Assignment built into the R Interpreter?

2023-03-13 Thread Duncan Murdoch
Yes, this is really a problem with the checks, not with the language. A simpler approach than your alternativeAssignment function would be simply to allow globalVariables() to be limited to a single function as the note in its help page says. This might be tedious to write by hand, but could