-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
speed compatibility to RStudio's plot device #68
Comments
I'm aware of this issue and I've been using something similar to your workaround. I have no idea how to fix this issue on RStudio's side, but I guess the issue with R CMD check should not be a problem if you use |
thanks! I'll try that. Perhaps a longer-term solution would be to ask @jjallaire to add a function like |
Personally I also hope there is an option to use R's default graphics device as well (which of course won't work for RStudio Server). |
BTW, I now see a new argument to |
Thanks! I just saw your post to R-devel. |
I've run into issues where rendering animations slows to a crawl when using animation library in RStudio. It seems that this may be caused by the fact that that the RStudio plot device is caching all of the plots (as is the animation lib, to replay with ani.replay(). For the past year or so, the ndtv package has used this code as a work around:
This works reasonably well, but raises the ire of R CMD check --as-cran, since it requires doing platform-specific device opening, rather than relaying on plot.new() to make the appropriate choice. I can't call plot.new(), since RStudio has overridden it to generate an RStudio device. Does anyone know of a way to find out what plot device would be called without RStudio? Or even better, is there some way to instruct the RStudio device to temporarily disable caching?
The text was updated successfully, but these errors were encountered: