0
votes

When I run my code all my graphs (both ggplot2 and plot) are displayed in an external "Quartz 2 [*]" graphical viewer.

I would like them to be displayed in the R studio GUI plot area to I can better save and view my files, along with the previous versions.

Is there anyway to stop this?

I recently updated my version of R, along with the X11 and xQuartz on my mac (also up to date), and I am guessing these updates are behind it.

I have seen many forums explaining how to get rstudio to export to an external viewer (e.g. "quartz()"), but not the other way.

I have looked, but these threads have not helped:

dev.off() even when hidden hide <- dev.off() is not working either.

Any help would be great, Thanks.

1
Have you tried to reinstall RStudio? - loki
what does options("device") give - user20650
@user20650 options("device") gives: $device function (title, width, height, pointsize, family, antialias, type, file = NULL, bg, canvas, dpi) { if (missing(type) || type %in% c("", "native", "Cocoa")) { check <- Sys.getenv("R_CHECK_SCREEN_DEVICE", "") msg <- "screen devices should not be used in examples etc" if (identical(check, "stop")) stop(msg, domain = NA) else if (identical(check, "warn")) warning(msg, immediate. = TRUE, noBreaks. = TRUE, domain = NA) } - imasnake
@loki, Thanks! Looks like I forgot to also reinstall Rstudio.. :/ - imasnake
@user20650 thanks, the problem we me forgetting to reinstall rstudio. Thanks for the suggestion. - imasnake

1 Answers

-1
votes

Looks like I forgot to reinstall Rstudio as well.. That sorted my problem.