I have been struggling sizing within tabset using a variety of approaches and now trying framewidgets. But the tabs are now not rendering, or least the first one renders then no more.
I think it is something to do with setting as others have been able to run the code. Any ideas where to start to fix this. I think there must be something awry.
I am running R 4.03, Rstudio 1.3.1093 on windows 10.
title: "widgetframes"
output:
flexdashboard::flex_dashboard:
self_contained: FALSE
orientation: rows
library(flexdashboard)
library(leaflet)
library(DT)
library(dygraphs)
library(widgetframe)
Row {.tabset .tabset-fade}
Leaflet 02
l <- leaflet() %>% addProviderTiles(providers$CartoDB.DarkMatter) %>% setView(0,0,2)
frameWidget(l, height = '300')
Leaflet 01
k <- leaflet() %>% addTiles() %>% setView(0,0,2)
frameWidget(k, height = '300')
Row {.tabset .tabset-fade}
DT
dt <- datatable(
head(iris, 20),
options = list(
columnDefs = list(list(className = 'dt-center', targets = 5)),
pageLength = 5, lengthMenu = c(5, 10, 15, 20)),
fillContainer = F)
frameWidget(dt, width = '95%')
dygraph
ts <- dygraph(nhtemp, main = "New Haven Temperatures")
frameWidget(ts, height = 300, width = '95%')