memory.size(maximum=F)
The size returned is the size of the space used for dynamically allocated memory. It does not include the space used for the executable code or compiled in data, which totals about 3 megabytes on most machines.
If the total amount of space used by S-PLUS is larger than your available main memory, S-PLUS will dramatically slow down as it spends most of its time transferring the excess to and from the swap disk. (You may need to quit from S-PLUS and restart in order to avoid this.)
memory.size() [1] 428152 { sum(log(1:1e5)) ; memory.size() } [1] 2033784 # grew from 0.4 to 2 megabytes memory.size() [1] 828208 # shrank to 0.8 megabytes memory.size(max=T) [1] 2033784