Better to_stop message for rstudio
Improve rstudio support for animations
Only check for rstudio graphics device