Re: [Rd] all.equal applied to function closures

2020-12-01 Thread Abby Spurdle
> Bill, I'm sure you've noticed that we did write all.equal.environment() > to work recursively... Actually, I had worked quite a bit at > that, too long ago to remember details, but the relevant svn log > entry is > >

[Rd] translation domain is wrong in stopifnot()?

2020-12-01 Thread Gábor Csárdi
I don't know if this would be considered a bug in either stopifnot() or (n)gettext(), or not a bug at all, but sometimes the translation domain is not set properly for stopifnot() messages, so they won't be translated. E.g. Sys.setenv(LANGUAGE = "de") # This is good stopifnot(FALSE) #> Fehler:

Re: [Rd] order() and sort() on single row data.frames

2020-12-01 Thread Kurt Hornik
> Benjamin Becker writes: > Hi, > not sure whether this belongs here or has been reported/asked before. > In the current R devel the behavior of order() and sort() on data.frames > with a single row has changed. > Before (release): >> sort(data.frame("b", "a")) >   X.a. X.b. > 1    a   

[Rd] order() and sort() on single row data.frames

2020-12-01 Thread Benjamin Becker
Hi, not sure whether this belongs here or has been reported/asked before. In the current R devel the behavior of order() and sort() on data.frames with a single row has changed. Before (release): > sort(data.frame("b", "a"))   X.a. X.b. 1    a    b Now (devel): > sort(data.frame("b",

Re: [Rd] [External] Re: .Internal(quit(...)): system call failed: Cannot allocate memory

2020-12-01 Thread Jan Gorecki
Yes, I do set outside of R, in shell: R_MAX_VSIZE=100Gb SRC_DATANAME=G1_1e9_2e0_0_0 /usr/bin/time -v Rscript datatable/groupby-datatable.R I think it might be related to allocations made with malloc rather than R_alloc. Probably malloc allocation is not capped by setting this env var. If so, then

Re: [Rd] [External] Re: .Internal(quit(...)): system call failed: Cannot allocate memory

2020-12-01 Thread luke-tierney
The fact that your max resident size isn't affected looks odd. Are you setting the environment variable outside R? When I run env R_MAX_VSIZE=16Gb /usr/bin/time bin/Rscript jg.R 1e9 2e0 0 0 (your code in jg.R). I get a quick failure with 11785524maxresident)k Best, luke On Tue, 1 Dec

Re: [Rd] [External] Re: .Internal(quit(...)): system call failed: Cannot allocate memory

2020-12-01 Thread Jan Gorecki
Thank you Luke, I tried your suggestion about R_MAX_VSIZE but I am not able to get the error you are getting. I tried recent R devel as I have seen you made a change to GC there. My machine is 128GB, free -h reports 125GB available. I tried to set 128, 125 and 100. In all cases the result is

Re: [Rd] all.equal applied to function closures

2020-12-01 Thread Duncan Murdoch
One more comment: it might be worthwhile reporting on a case where identical(e1, e2) fails when those are the environments associated with two functions (though I think not by default in all.equal.environment). Functions can modify variables in their environment, so examples like the

Re: [Rd] all.equal applied to function closures

2020-12-01 Thread Bill Dunlap
Probably all.equal.environment's do1() could be enhanced to do the recursion (and look at the environments' attributes). I wrote a separate function because it was easier to experiment that way (e.g., when to stop recursing - it stops when one environment is a top-level environment or the empty

Re: [Rd] all.equal applied to function closures

2020-12-01 Thread Martin Maechler
> Bill Dunlap > on Mon, 30 Nov 2020 13:41:54 -0800 writes: > To make the comparison more complete, all.equal.environment could compare > the parents of the target and current environments. That would have to be > recursive but could stop at the first 'top level