Write the contents of a display
Arguments
- trdf
- A trelliscope data frame created with - as_trelliscope_df()or a data frame which will be cast as such.
- force_write
- Should the panels be forced to be written even if they have already been written? 
- jsonp
- If true, app files are written as "jsonp" format, otherwise "json" format. The "jsonp" format makes it possible to browse a trelliscope app without the need for a web server. 
Examples
library(ggplot2)
panel_dat <- (
  ggplot(gap, aes(year, life_exp)) +
    geom_point() +
    facet_panels(vars(country, continent))
) |>
  as_panels_df()
disp <- panel_dat |>
  as_trelliscope_df(name = "life_expectancy")
if (FALSE) { # \dontrun{
disp <- write_trelliscope(disp)
view_trelliscope(disp)
} # }