Re: [R] R process taking over memory

2012-04-02 Thread Ramiro Barrantes
_ ___ From: Prof Brian Ripley [rip...@stats.ox.ac.uk] Sent: Sunday, April 01, 2012 4:04 PM To: Ramiro Barrantes Cc: r-help@r-project.org Subject: Re: [R] R process taking over memory You haven't even told us your OS (see the posting guide). But the usual way is to get

[R] R process taking over memory

2012-04-01 Thread Ramiro Barrantes
Hello, I have a general question on the possibility of how to catch and stop a function when it uses too much memory. The problem is that some datasets, when applied to nlme (a relatively older version), cause the nlme function to just hang forever and start taking over memory (this afternoon

Re: [R] R process taking over memory

2012-04-01 Thread Prof Brian Ripley
You haven't even told us your OS (see the posting guide). But the usual way is to get your OS to set a memory limit for a process (usually via your shell), and to run things under try/tryCatch. Then the OS will stop R allocating more than the limit, the current task in R will fail, and the