Re: [R] Timer on a function

2012-03-16 Thread William Dunlap
> -Original Message- > From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Sent: Friday, March 16, 2012 4:28 AM > To: Bert Gunter > Cc: William Dunlap; r-help@r-project.org; Ramiro Barrantes > Subject: Re: [R] Timer on a function > > On Thu, 15 Mar 2012, Bert Gu

Re: [R] Timer on a function

2012-03-16 Thread Prof Brian Ripley
Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Bert Gunter Sent: Thursday, March 15, 2012 3:05 PM To: Ramiro Barrantes Cc: r-help@r-project.org Subject: Re: [R] Timer on a function On Thu, Mar 15, 2012 at 2:24 PM, Ramiro Barrantes wrote:  

Re: [R] Timer on a function

2012-03-15 Thread Bert Gunter
oblem. > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On >> Behalf >> Of Bert Gunter >> Sent: Thursday, March 15, 2012 3:05 PM >&g

Re: [R] Timer on a function

2012-03-15 Thread William Dunlap
o.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Bert Gunter > Sent: Thursday, March 15, 2012 3:05 PM > To: Ramiro Barrantes > Cc: r-help@r-project.org > Subject: Re: [R] Timer on a function > >

Re: [R] Timer on a function

2012-03-15 Thread Ben Bolker
Ramiro Barrantes precisionbioassay.com> writes: > I have a program that consists of a loop fitting a function > over many models. Sometimes the fitting on a > particular model takes minutes to converge. Is there a way that > I can limit the amount of time that R spends > on a given model:

Re: [R] Timer on a function

2012-03-15 Thread Bert Gunter
On Thu, Mar 15, 2012 at 2:24 PM, Ramiro Barrantes wrote: >    Hello, > > I have a program that consists of a loop fitting a function over many models. >  Sometimes the fitting on a particular model takes minutes to converge.  Is > there a way that I can limit the amount of time that R spends on

[R] Timer on a function

2012-03-15 Thread Ramiro Barrantes
Hello, I have a program that consists of a loop fitting a function over many models. Sometimes the fitting on a particular model takes minutes to converge. Is there a way that I can limit the amount of time that R spends on a given model: say if my line is: fittingFunction( func, model.1