Goals
- Install the R language and the RStudio IDE.
- Run a first command and confirm your setup.
Steps
- Install R from CRAN.
- Install RStudio Desktop (free) from Posit.
- Open RStudio → Console tab → run:
version
sessionInfo()
2 + 2
Try it
- Create an R script (File → New File → R Script) and save it as
hello.R
.
- Put
print("Hello, STAT 312!")
in it and click “Run”.