I am trying to make a shiny-based data dashboard with some geo-referenced data so I am trying to work with highchart
and flexdashboard
. I find that the map rendered using renderHighchart
only appears right after running the document but disappears after refreshing the page (seems the map only shows up when there is "please wait..."). Any idea why this happens or how to get around it?
A reprex on my Ubuntu 20.04 with R4.1.3, here
---
title: "No refresh"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
runtime: shiny
---
```{r setup, include=FALSE}
library(flexdashboard)
library(highcharter)
Column {data-width=650}
Chart A
renderHighchart({
hcmap("countries/us/us-ca-all") %>%
hc_title(text = "California") %>%
hc_subtitle(text = "You can use the same functions to modify your map!")
})