Search code examples
rinternet-explorerflexdashboard

R flexdashboard not rendered in IE 11


I have produced a series of dashboards using flexdashboard and have found that they work well in Chrome but do not render in IE 11.

I made a very simple dashboard for testing purposes and still all I get in IE is a blank page. If I change the output from flexdashboard to html_document, it renders fine, so the problem appears to be with flexdashboard and not R Markdown.

Here's my simple dashboard:

---
title: "Flexdashboard - Internet Explorer test"
output: 
  flexdashboard::flex_dashboard
---    
```{r setup, include=FALSE}
# Libraries
library(flexdashboard)
library(knitr)
library(ggplot2)
```
Iris
=========================================
Row
-------------------------------------
```{r}
ggplot(data=iris, aes(x=Petal.Length, y=Petal.Width, color=Species)) + geom_point()
```

And this is all I get in IE: flexdashboard IE fail

I have found no other reports of this exact issue, only a similar problem using ggiraph.

I had my coworker try to open the file using IE on her computer and results were the same. I'd really like to get this working because some people in this org are only allowed IE.


Solution

  • I ran into the same issue when developing a dashboard for a client that could only use IE 11. The trick is to change the settings in the IE 11 browser. While the fix requires one manual step up front by the end user, once the setting is changed the end user should not experience issues loading the dashboard in IE 11.

    1. Click on the settings gear in the top right corner of an IE 11 browser.
    2. Select 'Compatability View settings' from the dropdown
    3. Uncheck 'Display intranet sites in Compatibility View'
    4. Close settings dialog box and open the dashboard