[R] Stop R script from running, when the memory goes beyond 15.4GB

Ista Zahn istazahn at gmail.com
Sat Nov 5 15:41:40 CET 2016


man ulimit


On Nov 5, 2016 8:11 AM, "Priya Arasu via R-help" <r-help at r-project.org>

> Hi,
>      I am using R 3.3.1 in RedHat Linux7 , 64bit system (16GB RAM).  I
> could run simulation in R package, Boolnet for 25 genes without any
> problem. When I add more gene i.e. 26 genes, the system becomes slow.
> Simulation keeps running for more than a day. I have to stop the
> simulation, as it takes a lot of memory. I need a suggestion here, I want
> to stop the script from running when the script takes memory beyond 15.4
> GB. How do I do it? Should I generate warning in my script or use typeCatch?
> Any idea or advice, would be of great help
> Thank you
> Priya
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]

More information about the R-help mailing list