Hi all -
I'm getting a weird warning for any code that I run right after I've opened RStudio or, if it's open, after the computer wakes from sleep. I can't make it repeat reliably, but it does frequently happen.
After any initial statement, even just a simple assignment statement, I get a series of warnings:
> x <- rnorm(100) Warning messages: 1: In doTryCatch(return(expr), name, parentenv, handler) : display list redraw incomplete 2: In doTryCatch(return(expr), name, parentenv, handler) : invalid graphics state 3: In doTryCatch(return(expr), name, parentenv, handler) : invalid graphics state > x <- rnorm(100) >
In the example above, x <- rnorm(x) still executes, and I can still use the result. Further, after running that same statement a second time, I don't get the warning. So it's not hindering anything I'm trying to do, but I'd like to know why it's happening.
I've been using RStudio for about two years, and it's only been in the past few months that I've had the issue. I don't use the regular R gui all that often, but I haven't noticed it when I've tried to replicate the error there. I had been on R version 3.6.1 (and a similar older version of RStudio), but recently upgraded to R 3.6.3 and RStudio 1.2.5033. This warning occurred both before and after the upgrades.
Any ideas on what might be causing it?