On Windows, only one can do memory.size()to get the total amount of memory consumed by the (current) current Rsession.
It is also possible to understand the size of an individual object with print( object.size( thing ), units='auto'), which says how many megabytes / kilobytes a particular frame / data table occupies.
But how to make an equivalent print( object.size( ---workspace--- ))?
Looping for (thing in ls()) print( object.size( thing ), units='auto' )prints incorrect output, for example:
64 bytes
72 bytes
88 bytes
88 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
72 bytes
88 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
64 bytes
what i did not mean.
source
share