[R] R - Problem retrieving memory used after gc() using arrow library
Kévin Pemonon
kev|npemonon @end|ng |rom gm@||@com
Wed Aug 16 11:22:00 CEST 2023
Hello,
I'm using R versions 4.1.3 on Windows 10 and I'm having a problem with
memory usage.
Currently, I need to use the arrow and dplyr libraries in a program and
when I compare the memory used between the windows task manager and the
memory.size(max=F) function, the one given by the windows task manager is
much larger, 243.5 MB RAM Windows <https://i.stack.imgur.com/nlWnL.png>,
than the one given by the memory.size(max=F) function, 75.77 MB.
However, I delete objects created with rm() and then use the gc() function
to recover the memory used by the object.
Attached is the R code, with and without output, that I used to present my
problem.
Do you think this memory difference is normal? Could it be caused by the
libraries used and/or by bad practices in using the R language?
I'd like to understand why there's a difference in memory used between the
Windows task manager and R's memory.size(max=F) function.
Thank you for your help, and I remain at your disposal for any further
information you may require.
Best regards,
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: r_code_with_output.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20230816/1e28644e/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: r_code.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20230816/1e28644e/attachment-0001.txt>
More information about the R-help
mailing list