How to get R on your computer. Demonstrated on a Windows System, Mac should work comparably. For Linux use the package manager of your distribution