calligross / ggthemeassist

A RStudio addin for ggplot2 theme tweaking
490 stars 43 forks source link

Cannot find ggplot when script panel is shown in 'new window' #72

Open ddauber opened 4 years ago

ddauber commented 4 years ago

Most of the time I have my R script open in a separate window (or even on a second monitor), while the rest of R (console, environment, plots, etc.) remain separate from it.

When selecting a ggplot in the detached R script, I get the following error message.

> ggThemeAssist:::ggThemeAssistAddin()
Error in ggThemeAssist:::ggThemeAssistAddin() : 
  Please highlight a ggplot2 plot before selecting this addon.

Turns out, when reattaching the window to the rest of R Studio, this error disappears. I was wondering whether there is an easy fix to this?

Cheers

calligross commented 4 years ago

I’m taking some days off, will check it when I’m back home.

Best regards Calli

Sent from my iPhone

On 19. Jun 2020, at 17:46, ddauber notifications@github.com wrote:

 Most of the time I have my R script open in a separate window (or even on a second monitor), while the rest of R (console, environment, plots, etc.) remain separate from it.

When selecting a ggplot in the detached R script, I get the following error message.

ggThemeAssist:::ggThemeAssistAddin() Error in ggThemeAssist:::ggThemeAssistAddin() : Please highlight a ggplot2 plot before selecting this addon. Turns out, when reattaching the window to the rest of R Studio, this error disappears. I was wondering whether there is an easy fix to this?

Cheers

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ddauber commented 6 months ago

Did you manage to take a look at it? It still seems to be throughing the same error.