library(knitr) opts_chunk$set(eval = FALSE)
Your instructor will give you a line of code to run within your R terminal, which will register your SocraticSwirl session so that it knows what lesson you are taking and who your instructor is. It will look something like this:
library(socraticswirl) socratic_swirl("linear regression", instructor = "instructors name")
After that, you can take any individual exercise, whenever the instructor prompts you, with a single line of R code. To take the first exercise in a session, do:
exercise(1)
To take the third exercise, you would do:
exercise(3)
It's that simple!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.