(ISTAT('TOTALALLOC'))
The TOTALALLOC parameter allows you to determine the amount of dynamic memory allocated to R:BASE. Unless you ZIP out to another program this number should not change during an R:BASE session.
This will not return valid information under R:BASE for Windows.