[Rd] Wrong vector size reported by error message

Herve Pages hpages at fhcrc.org
Tue Feb 6 00:42:57 CET 2007


Hi Oleg,

Oleg Sklyar wrote:
> my R-SVN revision is 40458 compared to 40386 yours, could it be
> corrected already?

No I don't think so. Maybe an architecture specific problem?
You are on a 64-bit system, I'm on a 32-bit system.

I was able to reproduce on 3 systems so far (with any version of R):
  - on my Pentium M laptop with Ubuntu 6.06
  - on a Linux SUSE 9.2 32-bit system
  - on a Core 1 Duo (32-bit) Mac Mini

All those systems are 32-bits.

I've tried on a couple of 64-bit systems and I don't get this problem.

Cheers,
H.

> 
> * ~: R
>> 2**30
> [1] 1073741824
>> a<-2:1073741824
> Error: cannot allocate vector of size 4194304 Kb
>> sessionInfo()
> R version 2.5.0 Under development (unstable) (2007-01-22 r40548)
> x86_64-unknown-linux-gnu
> 
> locale:
> LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=en_GB.UTF-8;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATION=C
> 
> 
> attached base packages:
> [1] "stats"     "graphics"  "grDevices" "utils"     "datasets"  "methods"
> [7] "base"
>>
> 
> -- 
> Dr Oleg Sklyar | EBI-EMBL, Cambridge CB10 1SD, UK | +44-1223-494466
> 
> 
> hpages at fhcrc.org wrote:
>> Hi,
>>
>> On my system, I get the following error message:
>>
>>   > big <- 2:(2**30)
>>   Error: cannot allocate vector of size 0 Kb
>>
>> Note the wrong "size 0 Kb" in the message!
>>
>> Cheers,
>> H.
>>
>>
>>> sessionInfo()
>> R version 2.5.0 Under development (unstable) (2007-01-05 r40386)
>> i686-pc-linux-gnu
>>
>> locale:
>> LC_CTYPE=en_CA.UTF-8;LC_NUMERIC=C;LC_TIME=en_CA.UTF-8;LC_COLLATE=en_CA.UTF-8;LC_MONETARY=en_CA.UTF-8;LC_MESSAGES=en_CA.UTF-8;LC_PAPER=en_CA.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_CA.UTF-8;LC_IDENTIFICATION=C
>>
>>
>> attached base packages:
>> [1] "stats"     "graphics"  "grDevices" "utils"     "datasets"  "methods"
>> [7] "base"
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>



More information about the R-devel mailing list