Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: Restart engine

$
0
0
I have also tried to clear the memory for the rEngine without restarting (though restarting does seem like a surefire solution).

When I try and clear my memory I use -
                            rEngine.Evaluate("rm(price_dataframe)");
                            rEngine.Evaluate("rm(trans_price_dataframe)");
                            rEngine.Evaluate("rm(tsdist)");
                            rEngine.Evaluate("rm(hc)");
                            rEngine.Evaluate("rm(cl)");
                            rEngine.Evaluate("gc()");
( those are all the objects I am using in R )

then,
                    GC.Collect();
                    rEngine.ForceGarbageCollection();
I get to about the 200th iteration of my routine ( using R to cluster a series of changing vectors ), before "Error: memory exhausted (limit reached?)" using the above.

Either if I could clear and restart rEngine ( as happens when I restart my c# project ) on each 50th iteration - as the two guys above want - or otherwise I could get the memory clearing stuff to work then I would be fine.

Library is fantastic, once I get this working I will be on Cloud 9.

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>