Type in the console: 2 + 3, sum(c(12, 6, 2)). In a script (File › New › R Script), select lines and press Ctrl+Enter to run them.
Packages
“`r
install.packages(c(“readr”, “readxl”, “dplyr”, “ggplot2”)) # once
library(dplyr) # each session
“`
💡 Create an RStudio Project (File > New Project) in a folder with your data. File paths then just work: read_csv(“sales.csv”).
Code for this course follows standard, current syntax; we test JavaScript and PowerShell scripts before publishing, and R/Java/Rust examples are kept to core language features. Tell us if anything fails on your setup.
Practice
Install R and RStudio, create a project folder and put sales.csv in it.