From p.dalgaard at biostat.ku.dk  Tue Feb  6 00:32:54 2007
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Tue, 06 Feb 2007 00:32:54 +0100
Subject: [Rd] Wrong vector size reported by error message
In-Reply-To: <45C7B744.5010701@ebi.ac.uk>
References: <1170695272.45c764681d287@webmail.fhcrc.org>
	<45C7B744.5010701@ebi.ac.uk>
Message-ID: <45C7BEA6.7020106@biostat.ku.dk>

Oleg Sklyar wrote:
> my R-SVN revision is 40458 compared to 40386 yours, could it be 
> corrected already?
>
> * ~: R
>  > 2**30
> [1] 1073741824
>  > a<-2:1073741824
> Error: cannot allocate vector of size 4194304 Kb
>   
There could be system dependencies. I get

> a<-2:1073741824

> a<-2:(2**30)

> gc()

            used   (Mb) gc trigger   (Mb)   max used   (Mb)

Ncells    235404   12.6     467875   25.0     350000   18.7

Vcells 536991796 4097.0 1127800953 8604.5 1073863120 8193.0

> 


;-)

(Frankly, I had forgotten about the size of that swap partition...)

-pd


>  > 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
>>     
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] Wrong vector size reported by error message
Peter Dalgaard