[R] R Crashes when using "large" matrices (Ubuntu 11.04)

Douglas Bates bates at stat.wisc.edu
Sat Jun 4 19:13:36 CEST 2011


On Fri, Jun 3, 2011 at 7:03 PM, Matias Salibian-Barrera
<msalibian at yahoo.ca> wrote:
> Hello,
>
> This simple SVD calculation (commands are copied immediately below) crashes on my Ubuntu machine (R 2.13.0). However it works fine on my Windows 7 machine, so I suspect there's a problem with (my?) Ubuntu and / or R. Can anybody else reproduce it (with Ubuntu 11.04)? Thanks in advance.

Works fine for me with Ubuntu 11.04 (amd_64) and the pre-compiled R-2.13.0
$ wajig list r-base-core
ii  r-base-core                    2.13.0-2natty0                 GNU
R core of statistical computation and graphics system

> n <- 300
> set.seed(1234)
> x <- matrix(rnorm(n*p), n, p)
> sih <- var(x)
> b <- svd(sih)
> str(b)
List of 3
 $ d: num [1:500] 5.04 4.94 4.92 4.83 4.82 ...
 $ u: num [1:500, 1:500] -0.03663 0.05414 0.00182 -0.02847 -0.00117 ...
 $ v: num [1:500, 1:500] -0.03663 0.05414 0.00182 -0.02847 -0.00117 ...
> sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base



More information about the R-help mailing list