Re: [R] array in version 2.8.0

From: David Stoffer <dsstoffer_at_gmail.com>
Date: Sun, 02 Nov 2008 19:00:03 -0800 (PST)

Ok- it works now after flushing my objects. The package Oarray doesn't seem to work under version 2.8.0. I emailed Jonathan about it and he said he won't get to updating it until next year. In the meantime, I was trying to produce a seat-of-the-pants workaround and I probably redefined "as.array" in my carelessness. Sorry for waking everybody up.

Rolf Turner-3 wrote:
>
>
> 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.
>
>


The power of accurate observation is commonly called cynicism by those who have not got it. George Bernard Shaw
-- 
View this message in context: http://www.nabble.com/array-in-version-2.8.0-tp20295881p20296616.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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 - 03:16:34 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 - 03:30:21 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