[R] Help with 'memory not mapped'

From: <jgarcia_at_ija.csic.es>
Date: Fri, 07 Mar 2008 10:26:02 +0100 (CET)


Hi,
I'm no expert programmer at all;
I'm running an R script ("mariam1_2.R"). This scripts calls another script, which contains an R function, which .Call some C code. It runs several times without any problem, but sometimes I get the error:


Traceback:

  1. .Call("rrfunc", as.double(dx), as.integer(nrows), as.integer(ncols), as.double(deltadt), as.character(binmaps), as.integer(ldd), as.double(downst),as.integer(outl), as.double(maxinte), as.double(nmn))
  2. rrfuncR(dx, nrows, ncols, delta.t,binmaps.pathed,ldd,downst, out.index,interc,n.man)
  3. eval.with.vis(expr, envir, enclos)
  4. eval.with.vis(ei, envir)
  5. source("rrprogv1_2.R")
  6. eval.with.vis(expr, envir, enclos)
  7. eval.with.vis(ei, envir)
  8. source("mariam1_2.R")

Possible actions:

1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

Selection:

I've seen something related in the documentation, but it is not easy to understand it for me. I'm trying to perform a Monte Carlo analysis that calls the function iteratively. My question is why sometimes I can call forty or fifty times the function without any problem, and other times it crashes at the first, second or 6th time. Can you give me any advice?

Thanks and best regards,
Javier



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 07 Mar 2008 - 09:25:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 07 Mar 2008 - 10:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive