Getting started with R how to install a package

To install a package in R call the install function in the prompt like this

install.packages("swirl", dependencies=TRUE)

Then when you have install swirl you can load in the library in your R file by using library()


Now the library swirl has been loaded and you can now call the swirl functions