I came across your error as well. Not sure how to fix it, though I would just use leaflet instead.
library(shiny)
library(shinydashboard)
library(mapview)
ui <- dashboardPage(
dashboardHeader(title = "test"),
dashboardSidebar(),
dashboardBody(
mapviewOutput("map")
)
)
server <- function(input, output) {
output$map <- renderMapview({
mapview(breweries)
})
}
shinyApp(ui, server)
Warning: Error in exprToQuo: Don't know how to convert 'leaflet' to a function; a quosure or quoted expression was expected
55: stop
54: exprToQuo
53: exprToFunction
52: shiny::installExprFunction
51: htmlwidgets::shinyRenderWidget
50: renderMapview
49: server [#2]
Error in exprToQuo(expr, env, quoted = TRUE) :
Don't know how to convert 'leaflet' to a function; a quosure or quoted expression was expected