emo icon indicating copy to clipboard operation
emo copied to clipboard

Using emo before plotly in rmd breaks plotly

Open martj42 opened this issue 7 years ago • 0 comments

Just stumbled upon a weird one. If I want to use an emoji before a plotly chart like here:

---
title: "Cars"
output: html_document
---

```{r include=FALSE}
library(plotly)
library(emo)
data("mtcars")
```

`r ji("fire")`

```{r}
plot_ly(data = mtcars, x = ~drat, y = ~qsec)
```

This would break the plotly chart and return some html code instead of the plot: <div id="htmlwidget-65acd8c73b41644644b6" style="width:672px;height:480px;" class="plotly html-widget">.

But were I to move the emoji code to after plotly, everything would work fine.

martj42 avatar Dec 16 '17 02:12 martj42