Skip to content
Back to formatted view

Raw Message

Message-ID: <4AF068AD.2080204@statistik.tu-dortmund.de>
Date: 2009-11-03T17:30:21Z
From: Uwe Ligges
Subject: R 2.10.0: Error in gsub/calloc
In-Reply-To: <20091103160108.07BF011BCDA0@venus.ibone.ch>

richard.liu at pueo-owl.ch wrote:
> I'm running R 2.10.0 under Mac OS X 10.5.8; however, I don't think this
> is a Mac-specific problem.
> 
> I have a very large (158,908 possible sentences, ca. 58 MB) plain text
> document d which I am
> trying to tokenize:  t <- strapply(d, "\\w+", perl = T).  I am
> encountering the following error:


What is strapply() and what is d?

Uwe Ligges




> Error in base::gsub(pattern, rs, x, ...) :
>   Calloc could not allocate (-1398215180 of 1) memory
> 
> This happens regardless of whether I run in 32- or 64-bit mode.  The
> machine has 8 GB of RAM, so
> I can hardly believe that RAM is a problem.
> 
> Thanks,
> Richard
> 
> ______________________________________________
> 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.