Last chance! 50% off unlimited learning
Sale ends in
swirl operates by installing a callback function which responds
to commands entered in the R console. This is how it captures
and tests answers given by the user in the R console. swirl will
remain in operation until this callback is removed, which is
what bye()
does.
bye()
# NOT RUN {
| Create a new variable called `x` that contains the number 3.
> bye()
| Leaving swirl now. Type swirl() to resume.
# }
Run the code above in your browser using DataLab