[Rd] write.matrix error (PR#9388)

From: <mli_at_emmes.com>
Date: Mon 27 Nov 2006 - 18:25:41 GMT


Full_Name: Ming-Chung Li
Version: 2.4.0
OS: windows xp
Submission from: (NULL) (65.125.12.222)

Hi,

My pc has 1gb physical ram and 1.5gb virtual memory. The write.matrix() function in MASS library gives an error when I try it to output a large matrix to a file. Please see the follwing code to reproduce the problem. The problem also happends in R 2.3.1 too. The write.table() does not have any error. Thanks,

Ming-Chung

> x <- matrix(rnorm(100000*300), 100000, 300)
> library(MASS)
> gc()

           used  (Mb) gc trigger  (Mb) max used  (Mb)
Ncells   247519   6.7     467875  12.5   453068  12.1
Vcells 30107442 229.8 90360081 689.4 90227465 688.4
> write.matrix(x, file = "c:/temp/temp.txt")
Error in .Call("R_lazyLoadDBfetch", key, file, compressed, hook, PACKAGE = "base
") :

        recursive default argument reference
>



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Nov 28 05:33:47 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 27 Nov 2006 - 19:31:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.