install.packages("swirl")
Swirl lessons
Swirl is a program/package that can help teach you R at your own pace. There are many swirl lessons that are freely available (most of which I have not tried!). Given that, you are free to explore them, but I have developed a set to follow our class (with support of a QUBES working group). To work with them, you’ll need to
install swirl
- You can use the Install Packages option in Rstudio or type the following into your console (or copy and paste it)!
- load the package and install the lessons for the book
- This will install swirl, load the package, and load the lessons.
library(swirl)
install_course_github("jsgosnell", "JSG_swirl_lessons")
- start swirl
swirl()
- Follow the on-screen prompts to select the CUNY_swirl course and the lesson you want to focus on. Lesson names match the chapter names. Note not all chapters have a matching swirl lesson!
Occasionally I update the lessons. If you want the latest version, you’ll need to uninstall the course
uninstall_course("JSG_swirl_lessons")
and then reinstall it following the original instructions.