Re: [R] Using capture.output within a function

2011-09-02 Thread Kristian Lind
Yes, that's true. It works as it's supposed to now. Thank you. Kristian Lind 2011/9/2 Duncan Murdoch > On 11-09-02 5:24 AM, Kristian Lind wrote: > >> Dear R-users >> >> I'm running a maximum likelihood procedure using the spg package. I'd like >> to save some output produced in each iteration

Re: [R] Using capture.output within a function

2011-09-02 Thread Duncan Murdoch
On 11-09-02 5:24 AM, Kristian Lind wrote: Dear R-users I'm running a maximum likelihood procedure using the spg package. I'd like to save some output produced in each iteration to a file, but if I put the capture.output() within the function I get the following message; Error in spg(par = startv

[R] Using capture.output within a function

2011-09-02 Thread Kristian Lind
Dear R-users I'm running a maximum likelihood procedure using the spg package. I'd like to save some output produced in each iteration to a file, but if I put the capture.output() within the function I get the following message; Error in spg(par = startval, fn = loglik, gr = NULL, method = 3, lowe