Re: [R] Singleton pattern

2012-03-19 Thread David Cassany
Thanks all of your answers and advices! They brought me some light! I'll have a look to memois package and to tracemem function in order to check if they can help me somehow, at least to understand and trace in detail how memory gets consumed. Thank you all! David 2012/3/16 Jan T. Kim

[R] Singleton pattern

2012-03-16 Thread David Cassany
Hi all, I know it may not have much sense thinking about a Singleton Pattern in an R application which doesn't use any OOP facilities, however I'm curious to know if anybody faced the same issue. I've been googling but using singleton pattern as a key word leads to typical OOP languages like Java

Re: [R] Singleton pattern

2012-03-16 Thread Bryan Hanson
Since no one else has bit, I'll take a stab. I'm an experienced R person, but I've recently been teaching myself objective-c and I've been using singletons quite a bit (and mis-using them quite a bit!). Not a computer scientist at all. You've been warned. I don't think there is a comparable

Re: [R] Singleton pattern

2012-03-16 Thread j verzani
David Cassany david.cassany at transmuralbiotech.com writes: Hi all, I know it may not have much sense thinking about a Singleton Pattern in an R application which doesn't use any OOP facilities, however I'm curious to know if anybody faced the same issue. I've been googling but using

Re: [R] Singleton pattern

2012-03-16 Thread Jan T. Kim
Using the singleton pattern in R has never occurred to me so far, as I think it applies to languages that support multiple references to one instance. R doesn't do that, at least not in ways that would be required for applying the singleton pattern as described in the GoF book, anyway. One would