From ligges at statistik.uni-dortmund.de  Thu Feb 19 14:11:04 2004
From: ligges at statistik.uni-dortmund.de (Uwe Ligges)
Date: Thu Feb 19 14:10:17 2004
Subject: [Rd] error messages because of integer overflow
Message-ID: <4034B5E8.30302@statistik.uni-dortmund.de>

This might be worth a wishlist/bug report (I'll submit it as such if 
nobody disagrees).


The following objects are nonsense in a way (too huge). It may happen, 
that you have got a bug in your code that generates such objects, so it 
would be great to get another error message telling the problem more 
precisely.

Obviously, the following error messages are caused by an integer overflow:

numeric(2^31)
Error in vector("double", length) : negative length vectors are not allowed

matrix( , 2^31, 1)
Error in matrix(, 2^31, 1) : negative extents to matrix

matrix( , 2^31/10, 100)
Error in matrix(, 2^31/10, 100) : negative length vectors are not allowed


Uwe Ligges


[Rd] error messages because of integer overflow
Uwe Ligges