When I tried to plot a histogram in Rstudio, I got the following error:
Error in dev.control(displaylist = "enable") : dev.control() called without an open graphics device
This is what the traceback shows:
7. stop("dev.control() called without an open graphics device")
6. dev.control(displaylist = "enable")
5. device.call(...)
4. trellis.device()
3. printFunction(x, ...)
2. print.trellis(x)
(function (x, ...) UseMethod("print"))(x)
I'm using macOS and have basically no experience with Rstudio.