For teaching, have you considered using RStudio Cloud?
One only has to set up a single environment (workspace), and then share it with class attendees.
Thus one may focus on teaching than spend time preparing individual environments.
As a bonus, RStudio offers its cloud workspace for free currently!