I am trying to create a html widget with flexdashboard elements in an object of class "shiny tag list". Expected output : An html file saved in my local drive. Actual output
Error : Error in system.file(config, package = package) : 'package' must be of length 1
Here is a minimized version of the code:
library(flexdashboard)
library(htmlwidgets)
library(htmltools)
myflex1<- gauge(1.5, min = 0, max = 5, symbol = '', gaugeSectors(success = c(0, 2),warning = c(2,3.5 ),danger = c(3.5, 5)))
myflex<- browsable(tagList
(list(tags$div(
style = 'position: absolute;
left: 100px;top: 350px;display:block',
myflex1
))))
htmlwidgets::saveWidget(myflex, "myflex.html")