Thanx for clarification on stating my problem, Charlie.

I am attempting to merge to files, i.e.:
hi39 = merge(comb[,c("hillID","geo")], hi.h39, by=c("hillID"))

if this is relevant or helps to explain:
the file 'comb' is 3 columns and 1127 rows
the file 'hi.h39' is 5 columns and 19758564 rows

i started a new clean R session in which i was able to read those 2 files
in, but get the following error when i try to merge them:

R(2175) malloc: *** mmap(size=79036416) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(2175) malloc: *** mmap(size=79036416) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(2175) malloc: *** mmap(size=158068736) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(2175) malloc: *** mmap(size=158068736) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(2175) malloc: *** mmap(size=158068736) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Error: cannot allocate vector of size 150.7 Mb

so the final error is "Cannot allocate vector of size 150.7 Mb", as
suggested when R runs out of memory.

i am running R version 2.9.2, on mac os X 10.5 - leopard.

any suggestion on how to increase R's memory on a mac?
thanx for any much needed help!
Janet

On Wed, Mar 31, 2010 at 5:47 PM, Sharpie <ch...@sharpsteen.net> wrote:

>
>
> Janet Choate-2 wrote:
> >
> > Hi R community,
> > i have what appears to be a memory allocation problem:
> >
> > R(51150) malloc: *** mmap(size=158068736) failed (error code=12)
> > *** error: can't allocate region
> > *** set a breakpoint in malloc_error_break to debug
> >
> > can anyone tell me how to increase the memory size for R on mac os X?
> >
> > thank you,
> > Janet
> >
>
> Setting memory limits was something that was done under OS 9- with OS X
> apps
> get as much memory as they request as long as free space is available.
> Also, when R runs out of memory, you usually see errors like:
>
> Cannot allocate vector of size X
>
> Some details may help pin this problem down: what were you doing when you
> got this error?  Is it repeatable?  Is it an error with a base R routine or
> with something provided by a package? If so, what version?
>
> Providing these details will help the people on this list understand what
> your problem is and suggest solutions.
>
> Good luck!
>
> -Charlie
>
> -----
> Charlie Sharpsteen
> Undergraduate-- Environmental Resources Engineering
> Humboldt State University
> --
> View this message in context:
> http://n4.nabble.com/memory-error-tp1747357p1747558.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@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.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to