Displaying 3 results from an estimated 3 matches for "do_lapply".
2016 Oct 29
1
lapply on long vector fails
...C_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
other attached packages:
[1] SparkR_1.6.1
loaded via a namespace (and not attached):
[1] tools_3.3.1
However, the code that implements 'lapply', function 'do_lapply' in apply.c, seems to support long vectors.
The error message points to memory.c:1652. I don't understand the code there.
A different case:
gc()
after
system.time(vector("list", 2^31))
gave an error with message pointing to memory.c at different line. Subsequent
gc()
didn't...
2017 Jun 27
0
Seg Fault memory violation
...<return> to quit---
arglist=arglist at entry=0x17f3db30, rho=rho at entry=0x17f3e0c0, suppliedvars=<optimized out>) at eval.c:1549
#22 0x00007ffff78d84bc in R_forceAndCall (e=e at entry=0x17f3da88, n=n at entry=1, rho=rho at entry=0x17f3e0c0) at eval.c:1676
#23 0x00007ffff782cd92 in do_lapply (call=<optimized out>, op=<optimized out>, args=<optimized out>, rho=0x17f3e0c0)
at apply.c:70
#24 0x00007ffff79092e9 in do_internal (call=<optimized out>, op=<optimized out>, args=<optimized out>, env=0x17f3e0c0)
at names.c:1360
#25 0x00007ffff78c462a in...
2004 Sep 13
6
Spare some CPU cycles for testing lme?
If anyone has a few extra CPU cycles to spare,
I'd appreciate it if you could verify a problem that I
have encountered. Run the code
below and tell me if it crashes your R before
completion.
library(lme4)
data(bdf)
dump<-sapply( 1:50000, function(i) {
fm <- lme(langPOST ~ IQ.ver.cen + avg.IQ.ver.cen, data = bdf,
random = ~ IQ.ver.cen | schoolNR);
cat("