The following two exercises aim to help you determine if it is worthwhile upgrading your RAM.
R loads everything into memory, i.e. your computers RAM. How much RAM does your computer you have?
The benchmarkme package provides a function for obtaining the amount of RAM on your system:
r
benchmarkme::get_ram()
Using your preferred search engine, how much does it cost to double the amount of available RAM on your system?
16GB of RAM costs around £90/$110.
These exercises aim to condense the previous section into the key points.
Are you using $32$-bit or $64$-bit version of R?
An easy of to tell is to look at .Machine$sizeof.pointer
:
r
if(.Machine$sizeof.pointer == 8) 64 else 32
2. If you are using Windows, what are the results of running the command memory.limit()
?
To assess whether you should consider cloud computing, how much does it cost to rent a machine comparable to your laptop in the cloud?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.