[Rd] Line-terminal \ in character consants -- missing from ?Quotes ?

2023-02-11 Thread Michael Chirico via R-devel
I'm coming across some code that uses the fact the parser ignores a line-terminal '\', e.g. identical("\ ", "\n") # [1] TRUE x = "abc \ def" y = "abc \ndef" identical(x, y) # [1] TRUE However: identical("\\n", "\n") # [1] FALSE This appears to be undocumented behavior; the closest thing I see i

[Rd] inconsistent use of optim's parscale in Hessian vs gradient

2023-02-11 Thread Perry de Valpine
Dear r-devel: I noticed that optim's finite-element derivative approximations operate on par/parscale for the gradient (as documented in help(optim)) but on par for the Hessian. (The same goes for optimHess, which calls the same Hessian code.) This seems odd, so I am wondering if it is intended.

[Rd] Unable to load Windows NETIO.SYS and WINSPOOL.DRV DLLs

2023-02-11 Thread David Sterratt
I am trying to build the RGtk2 package (https://github.com/lawremi/RGtk2) using R-devel and only the libraries bundled with RTookl4.3 (currently RGtk2 is bundled with a compiled dll and requires GTK libraries to be downloaded after installation into R). I have used the instructions at https://cran

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