Skip to content
Justice Tech School

R Get Started

Install R from cran.r-project.org and RStudio as the editor. Type code in the console or save it in a file ending in .R and run it with Rscript file.R.

Example
# Terminal:
#   Rscript hello.R
print("Hello World")

Exercise

Run a script.

 hello.R

Quiz Test

Which program runs R scripts?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.