I have an R script that loops over market contracts. The script runs well for markets with relatively small number of contracts but seg faults when the number of contracts (loop iterations) is large. Is there a way for me to monitor my objects and their sizes from within the R script? How can I get all of the objects and their sizes?
Do RSiteSearch("ls.obj") and click on the first hit. Andy> From: Omar Lakkis > > I have an R script that loops over market contracts. The script runs > well for markets with relatively small number of contracts but seg > faults when the number of contracts (loop iterations) is large. > Is there a way for me to monitor my objects and their sizes from > within the R script? > How can I get all of the objects and their sizes? > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > >
hel.search("object size") found a function "object.size" that should do what you want. spencer graves Omar Lakkis wrote:> I have an R script that loops over market contracts. The script runs > well for markets with relatively small number of contracts but seg > faults when the number of contracts (loop iterations) is large. > Is there a way for me to monitor my objects and their sizes from > within the R script? > How can I get all of the objects and their sizes? > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html-- Spencer Graves, PhD Senior Development Engineer PDF Solutions, Inc. 333 West San Carlos Street Suite 700 San Jose, CA 95110, USA spencer.graves at pdf.com www.pdf.com <http://www.pdf.com> Tel: 408-938-4420 Fax: 408-280-7915