Attempt to extract the amount of RAM on the current machine. This is OS specific:
Linux: proc/meminfo
proc/meminfo
Apple: system_profiler -detailLevel mini
system_profiler -detailLevel mini
Windows: memory.size()
memory.size()
Solaris: prtconf
prtconf
A value of NA is return if it isn't possible to determine the amount of RAM.
NA
get_ram()
The print.bytes function was taken from the pryr package.
print.bytes
# NOT RUN { ## Return (and pretty print) the amount of RAM get_ram() # }
Run the code above in your browser using DataLab