Rstudio and R memory allocation

This is not a complete answer (sorry! :frowning: ) but the wacky memory.limit() result is a known bug, with work underway.

Some previous discussion here:

And the Github issue is here: