[R] array in version 2.8.0

David Stoffer dsstoffer at gmail.com
Mon Nov 3 04:00:03 CET 2008


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.



More information about the R-help mailing list