R Project Linux. To download r please choose your preferred cran mirror. It compiles and runs on a wide variety of unix platforms windows and macos.
This is my sample r program printing hello world. Sudo apt get update sudo apt get install r base. At this point we re ready to install r with the following command.
The file extension should be r.
The second way to run r programs is in directly on the linux command line. First you have to save your r program to a file using your favorite code editor on linux. Users who need to compile r packages from source e g. I have saved it in a file name hello r.