Sunday, 15 January 2012

R xml package - free document / memory leak -



R xml package - free document / memory leak -

i have problem of releasing memory when readin .xml-files using xml bundle (version 3.98-1.1, r 3.0.2, windows 7, 64bit). problem has appeared , several solutions/bug fixes have been proposed, on stackoverflow. went through many of these , have read (and understood?) duncan lang`s memory management page, outlining counter-based memory release nodes , documents. however, problem persists, i.e.,

pathed<- ... # path pubchem .xml file doc<-xmltreeparse(file=pathed,useinternalnodes=true) get_data<-getnodeset(doc,path="//r:pc-infodata", c(r = "http://www.ncbi.nlm.nih.gov") )

will not allow me release "doc" memory using combinations , different ordering of rm(), free(), gc() doc , get_data. ended using .call("rs_xml_forcefreedoc", doc) , monitoring counter settings .call("r_getxmlrefcount", ...) - cannot solution, not?

what doing wrong? give thanks much help ...

xml r memory-leaks

No comments:

Post a Comment