R/deliverChart.R

Defines functions deliverChart

Documented in deliverChart

deliverChart <- function(div_id,
                        running_in_shiny = TRUE){

  to_eval <- paste0("uiOutput(\"",
                   div_id,
                   "\")")

  if(running_in_shiny == TRUE){
    eval(parse(text = to_eval)
    )
  } else {
    cat(to_eval)
  }
}
XD-DENG/ECharts2Shiny documentation built on Oct. 8, 2020, 10:51 a.m.