It could be interesting to allow the RStudio interface to be controlled by the instructions.

See here for more details.