Swirl course to learn R programming for the students of the University of Cordoba (Spain).
First of all, make sure you have installed 'swirl' library in your R system. Otherwise, type in the R console
install.packages("swirl")
Download file '.swc' in your computer.
Then, in the R console, type
library(swirl)
install_course()
You will be asked to select the '.swc' you downloaded previously. If everything went well, you will receive a message like 'Course installed successfully!'
Once installed, type
swirl()
You are ready to select this new course and start learning!
Useful notes:
- If you want to use this course on a multi-user system (e.g. the computers of your university), you might need to set the following variables, right after loading the swirl library:
swirl_options(swirl_data_dir="~/swirl_data")
swirl_options(swirl_courses_dir="~/swirl_courses")
This example assumes that you have previously created both folders swirl_data
and swirl_courses
in your home directory.