Hi, trying to run
reprex() with the following code:
library(tidyverse) library(gapminder) library(plotly) p <- gapminder %>% ggplot(aes(gdpPercap, lifeExp)) + geom_point(aes(color = country), show.legend = FALSE) ggplotly(p)
yields the following error:
Rendering reprex... Error: callr subprocess failed: Functions that produce HTML output found in document targeting markdown_strict output. Please change the output type of this document to HTML. Alternatively, you can allow HTML output in non-HTML formats by adding this option to the YAML front-matter of your rmarkdown file: always_allow_html: true Note however that the HTML output will not be visible in non-HTML formats.
If I'm not using R markdown, is there still a way to fix this?