Workaround to R memory leak with XML package

前端 未结 3 984
灰色年华
灰色年华 2020-12-11 19:34

I am trying to run some simple program to extract tables from html code. However, there seems to be some memory issue with readHTMLTable in XML package. Is there any way I c

3条回答
  •  粉色の甜心
    2020-12-11 20:05

    I had a lot of problems with memory leaks in the XML pakackage too (under both windows and linux), but the way I solved it eventually was to remove the object at the end of each processing step, i.e. add a rm(b) and a gc() at the end of each iteration. Let me know if this works for you too.

提交回复
热议问题