Demo of minimal code which multitasks between the R prompt and a swirl tutorial, using a persistent environment to store data between invocations of the tutorial. A generic method, resume, contains the top level tutorial code. The resume.class argument of hi() determines which version of resume is used.