| 1 |
library(shiny) |
| 2 |
library(thematic) |
| 3 |
|
| 4 |
thematic_shiny(font = "auto") |
| 5 |
|
| 6 |
ui <- fluidPage( |
| 7 |
titlePanel("Hello"), |
| 8 |
tags$head( |
| 9 |
tags$link(href="https://fonts.googleapis.com/css?family=Pacifico", rel="stylesheet"), |
| 10 |
tags$style(HTML("body{background-color:#444444; color:#e4e4e4; font-family: Pacifico}")), |
| 11 |
tags$style(HTML("a{color:#e39777}")) |
| 12 |
), |
| 13 |
plotOutput("p") |
| 14 |
) |
| 15 |
|
| 16 |
render_plot <- function(expr) { |
| 17 |
snapshotPreprocessOutput(renderPlot(expr), function(value) {}) |
| 18 |
} |
| 19 |
|
| 20 |
server <- function(input, output, session) { |
| 21 |
output$p <- render_plot({ |
| 22 |
lattice::show.settings() |
| 23 |
}) |
| 24 |
} |
| 25 |
|
| 26 |
shinyApp(ui, server) |