Re: [R] Objects disappearing in my R work space

2011-11-25 Thread jim holtman
at least put print(str(Samples)) right after the function call to make sure it is there, and if you have more code after that, sprinkle that print statement in the following code. You might at least send the code and indicate where you have tested to see if the object is still there. So put som

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Michael Clawson
I am returning a matrix from a function Samples<-DoMCMC(InitialVactor, CovarianceMatrix, ObservationData, NumCycles, Burnin, Thin) When I have one R session open the program works, Samples is a matrix of samples from the MCMC When I have two R sessions open, it runs to completion, but when I got

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread jim holtman
One thing is to define "missing" a little better. For example, as mentioned previously, are you returning the values from a function call? If you, print out an indication that they exist at that point. If there is further processing happening, put some checks as to their existance as the code con

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Rolf Turner
On 26/11/11 12:19, Duncan Murdoch wrote: On 11-11-25 1:03 PM, Michael Clawson wrote: My problem with providing the code, is MCMC is a fairly integrated process, so I dont know how I would pare it down to send... Would it work to send the MCMC code, and the three *.csv files to go along with i

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Duncan Murdoch
On 11-11-25 1:03 PM, Michael Clawson wrote: My problem with providing the code, is MCMC is a fairly integrated process, so I dont know how I would pare it down to send... Would it work to send the MCMC code, and the three *.csv files to go along with it? I don't understand. If you can't make y

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Ben Bolker
Michael Clawson gmail.com> writes: > > My problem with providing the code, is MCMC is a fairly integrated process, > so I dont know how I would pare it down to send... > Would it work to send the MCMC code, and the three *.csv files to go along > with it? > Reproducible is essential, minimal

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Michael Clawson
My problem with providing the code, is MCMC is a fairly integrated process, so I dont know how I would pare it down to send... Would it work to send the MCMC code, and the three *.csv files to go along with it? On Fri, Nov 25, 2011 at 9:54 AM, David Winsemius wrote: > > On Nov 25, 2011, at 10:08

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread David Winsemius
On Nov 25, 2011, at 10:08 AM, Michael Clawson wrote: Uwe, by window I mean instances, by runs I mean, runs the my Markov-Chain Monte Carlo simulator It would probably be better to adopt the terminology that the things you are calling "windows" are "sessions". I open two instances of R

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Michael Clawson
Uwe, by window I mean instances, by runs I mean, runs the my Markov-Chain Monte Carlo simulator I open two instances of R, run a million cycle chain in each instance, and when they finish, neither window has the object I defined to store the runs. I tested this morning and when I open two R wind

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Uwe Ligges
On 25.11.2011 16:08, Michael Clawson wrote: Uwe, by window I mean instances, by runs I mean, runs the my Markov-Chain Monte Carlo simulator I open two instances of R, run a million cycle chain in each instance, and when they finish, neither window has the object I defined to store the runs.

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Uwe Ligges
On 25.11.2011 05:12, Aldo wrote: Is there a maximum memory allocation for all R windows open? because it is like 1-3 million runs So you mean you open a million windows at the same time? In that case we really need your definition of "window". so... it may be reaching some sort

Re: [R] Objects disappearing in my R work space

2011-11-25 Thread Uwe Ligges
On 25.11.2011 05:07, Aldo wrote: It works when I do not have multiple windows open, Please read the posting guide! You failed to follow in multiple way, most important one so far: quote the thread! We do not know your original question nor the answers you got so far. This is the R mailing

Re: [R] Objects disappearing in my R work space

2011-11-24 Thread Aldo
Is there a maximum memory allocation for all R windows open? because it is like 1-3 million runs so... it may be reaching some sort of memory limit -- View this message in context: http://r.789695.n4.nabble.com/Objects-disappearing-in-my-R-work-space-tp4104389p4106390.html Sent from the R hel

Re: [R] Objects disappearing in my R work space

2011-11-24 Thread Aldo
It works when I do not have multiple windows open, but is not there when I do have multiple windows open, so I dont think it has to do with the function The function is pretty complicated but I can share more if you think it will help -- View this message in context: http://r.789695.n4.nabble

Re: [R] Objects disappearing in my R work space

2011-11-24 Thread R. Michael Weylandt
Can you say more about how your algorithm is implemented? If it's wrapped in a function, the result might disappear with the end of the function's environment. I don't think having multiple R sessions would be a problem...it's never been for me. Michael On Thu, Nov 24, 2011 at 10:50 AM, Aldo wro

[R] Objects disappearing in my R work space

2011-11-24 Thread Aldo
I am running MCMC chains with a self written MCMC algorithm. When I have multiple R terminals open while running the Chain, when it finishes it is not there. when I press ls() it does not show up and when I type the Name it says the Object is not found. I assume It is unrecoverable... but how do I