To load the swirl library just click the play button in the chunk below. Use the console pane to do what swirl asks you.

install.packages("swirl")
## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.5'
## (as 'lib' is unspecified)
library("swirl")
## 
## | Hi! Type swirl() when you are ready to begin.

swirl() ## you only need to go through 1: R programming : The basics of programming in R (basic buildng blocks) ## you might want to take some notes on what you are learning and practicing (assigning variables <-, pane names, where to look for things, how to find out more…)