title: How to check the amount of RAM
body: <p>I want to make a function that imports data in different numbers of batches depending on how much RAM is available on someone's system. But how can I find the amount of available RAM in R? I can use <code>memory.size()</code> but that only works for Windows.</p>