Re: [R] array in version 2.8.0

From: Rolf Turner <r.turner_at_auckland.ac.nz>
Date: Mon, 03 Nov 2008 14:29:02 +1300

On 3/11/2008, at 2:11 PM, David Stoffer wrote:

>
> What happened? TIA.
>
> In version 2.7.x:
>
>> (x <- array(1:4, c(2,2)))
> [,1] [,2]
> [1,] 1 3
> [2,] 2 4
>
>> as.array(x)
> [,1] [,2]
> [1,] 1 3
> [2,] 2 4
>
> In version 2.8.0:
>
>> (x <- array(1:4, c(2,2)))
> [,1] [,2]
> [1,] 1 3
> [2,] 2 4
>
>> as.array(x)
> Error: evaluation nested too deeply: infinite recursion /
> options(expressions=)?

Doesn't happen to me:

  > x <- array(1:4,c(2,2))
  > x

      [,1] [,2]
[1,] 1 3
[2,] 2 4
  > class(x)
[1] "matrix"
  > as.array(x)

      [,1] [,2]
[1,] 1 3
[2,] 2 4

My sessionInfo() is:

  > sessionInfo()
R version 2.8.0 (2008-10-20)
i386-apple-darwin8.11.1

locale:
C

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

other attached packages:
[1] misc_0.0-9 fortunes_1.3-5 MASS_7.2-44

Is there another array() function hanging around in your search path?

        cheers,

                Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 03 Nov 2008 - 01:31:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Nov 2008 - 05:30:22 GMT.

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

list of date sections of archive