Re: [Rd] How deep can/should lists be nested?

2012-10-14 Thread Richard Cotton
I agree that real-world uses of nesting this deep are rare enough to not worry about fixing code (unless there is something extremely trivial that can done). My main concern is that it doesn't seem to be documented how much nesting is possible, and I couldn't even guess the order of magnitude with

Re: [Rd] How deep can/should lists be nested?

2012-10-14 Thread Prof Brian Ripley
On 14/10/2012 12:53, Duncan Murdoch wrote: On 12-10-14 7:06 AM, Richard Cotton wrote: I started idly wondering how deeply lists could be nested, and couldn't find an explicit limit in the documentation. With this simple test a_list <- list() count <- 0 repeat { a_list[[1]] <- a_list coun

Re: [Rd] How deep can/should lists be nested?

2012-10-14 Thread Duncan Murdoch
On 12-10-14 7:06 AM, Richard Cotton wrote: I started idly wondering how deeply lists could be nested, and couldn't find an explicit limit in the documentation. With this simple test a_list <- list() count <- 0 repeat { a_list[[1]] <- a_list count <- count + 1 } my (Win7, R-2.16.0 devel)

[Rd] How deep can/should lists be nested?

2012-10-14 Thread Richard Cotton
I started idly wondering how deeply lists could be nested, and couldn't find an explicit limit in the documentation. With this simple test a_list <- list() count <- 0 repeat { a_list[[1]] <- a_list count <- count + 1 } my (Win7, R-2.16.0 devel) machine threw an error when count got close to