title: Rmarkdown chunk output bug (?) (Rstudio: Notebook output)
body: <p>In a Rmarkdown document, when I use ggplot to plot data (a map in my case) and label points with geom_text_repel from the ggrepel package, the labels disappear when I open the plot in the Rstudio: Notebook output (show in new window). I would like to be able to quickly have a look at my <strong>labeled</strong> plot and enlarge it with the notebook output view.</p>
  
  <p>Is that a bug in ggrepel, ggplot, Rmarkdown or Rstudio? Can I get rid of it?</p>
  
  <p>I am using Rstudio Version 1.1.453, R version 3.6.2 under Linux Mint. The error persists with Rstudio Version 1.2.5033</p>
  
  <p>Package versions:</p>
  
  <pre><code>&gt; packageVersion("ggplot2")
  [1] ‘3.2.1’
  &gt; packageVersion("ggrepel")
  [1] ‘0.8.1’
  &gt; packageVersion("sf")
  [1] ‘0.8.1’
  &gt; packageVersion("rnaturalearth")
  [1] ‘0.1.0’
  &gt; packageVersion("rnaturalearthdata")
  [1] ‘0.1.0’
  &gt; packageVersion("rmarkdown")
  [1] ‘2.1’
  &gt; packageVersion("knitr")
  [1] ‘1.28’
  </code></pre>
  
  <p>MWE:</p>
  
  <pre><code>---
  title: "Test"
  output: pdf_document
  ---
  
  ```{r setup, include=FALSE}
  knitr::opts_chunk$set(echo = TRUE)
  ```
  
  ```{r}
  library("ggplot2")
  library("ggrepel")
  library("sf")
  
  library("rnaturalearth")
  library("rnaturalearthdata")
  
  world &lt;- ne_countries(scale = "medium", returnclass = "sf")
  
  
  label &lt;- c(30, 38,39,132-2)
  latitude &lt;- c(-55.8,-58.7,-59.3,-52.6)
  
  longitude &lt;- c(-71.3, -68.4,-67.2,-75.5)
  df &lt;- data.frame(latitude, longitude, label)
  
  p &lt;- ggplot(data = world) +
    geom_sf() +
    coord_sf() +
    geom_point(data = df, aes(x = longitude, y = latitude))+
    geom_text_repel(data = df, aes(x = longitude, y = latitude, label = label))
  
  show(p)
  ```
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/dfKFd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dfKFd.png" alt="screenshot - labels disappeared in the new window (visible in the chunk output)"></a></p>
  
  <hr>
  
  <p><strong>"Update"</strong>
  A similar, maybe related (?) behaviour happens, when I want to draw a grid grob with grid.draw. This only happens within output view of the chunks (and related "show in new window" option) rmarkdown files. When I run the same code from an R script, the Viewer-Windows shows the output just as expected. </p>
  
  <p>This (both) seem to be a Rstudio bug related to Rmarkdown documents and specifically the output-view of chunks.</p>