Re: [R] Obtaining partial output from a function that does not run to completion.

2009-12-31 Thread Eric
To heck with print(), use R's debugging capabilities instead: trace ( minBMI, browser ) Be sure to ?trace and ?browser so you can figure out how to interactively debug. Eric On 12/31/09 6:29 AM, John Sorkin wrote: I have written a function that contains runs lm() vif() and glm() When th

Re: [R] Obtaining partial output from a function that does not run to completion.

2009-12-31 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of John Sorkin > Sent: Thursday, December 31, 2009 6:30 AM > To: r-help@r-project.org > Subject: [R] Obtaining partial output from a function that > does

Re: [R] Obtaining partial output from a function that does not run to completion.

2009-12-31 Thread Duncan Murdoch
John Sorkin wrote: Duncan, Thank you, however, if you will look at my function (bottom of this Email message), you will see that I have used print(). It appears that the print function is not run until the entire function completes running. No, statements are run in the order you give them

Re: [R] Obtaining partial output from a function that does not run to completion.

2009-12-31 Thread John Sorkin
Duncan, Thank you, however, if you will look at my function (bottom of this Email message), you will see that I have used print(). It appears that the print function is not run until the entire function completes running. John John David Sorkin M.D., Ph.D. Chief, Biostatistics and Informatics

Re: [R] Obtaining partial output from a function that does not run to completion.

2009-12-31 Thread David Winsemius
On Dec 31, 2009, at 8:29 AM, John Sorkin wrote: I have written a function that contains runs lm() vif() and glm() When the glm() blows up with an error message, I don't get the output from either the lm() or vf() even thought neither lm() nor vif() have any problems . How can I force the

Re: [R] Obtaining partial output from a function that does not run to completion.

2009-12-31 Thread Duncan Murdoch
On 31/12/2009 9:29 AM, John Sorkin wrote: I have written a function that contains runs lm() vif() and glm() When the glm() blows up with an error message, I don't get the output from either the lm() or vf() even thought neither lm() nor vif() have any problems . How can I force the function

[R] Obtaining partial output from a function that does not run to completion.

2009-12-31 Thread John Sorkin
I have written a function that contains runs lm() vif() and glm() When the glm() blows up with an error message, I don't get the output from either the lm() or vf() even thought neither lm() nor vif() have any problems . How can I force the function to print sequential results rather than wait