I want to make a function that imports data in different numbers of batches depending on how much RAM is available on someones system. But how can I find the amount of avail
I would recommend using memuse::Sys.meminfo().
memuse::Sys.meminfo()