Skip to content

Instantly share code, notes, and snippets.

Avatar
🎨
'Auto' theming all the things

Carson Sievert cpsievert

🎨
'Auto' theming all the things
View GitHub Profile
View thematic.Rmd
---
title: "Thematic demo"
output:
html_document
---
```{r setup, include=FALSE}
library(bootstraplib)
bs_theme_base_colors(bg = "black", fg = "white")
bs_theme_accent_colors(primary = "salmon")
View README.md

It appears plotly.js 1.50.0 introduced the following error in phantomjs 2.1.1:

$ phantomjs --version
2.1.1
$ phantomjs plot.js
This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.
View scss-bs.Rmd
---
title: "Untitled"
output: html_document
---
```{sass, engine.opts = list(sass_fun = bootstraplib::bootstrap_sass)}
body
background-color: $primary;
```
View sass-printing.Rmd
---
title: "Untitled"
output:
html_document:
highlight: tango
---
```{r}
library(sass)
bg_black <- list(
View _site.yml
name: "site"
output:
html_document:
theme: sketchy
bootstrap_version: 4
theme_variables:
primary: pink
font-size-base: 1.5rem
navbar:
title: "My Website"
View scatter-to-density.R
library(shiny)
mtcars$.key <- row.names(mtcars)
ui <- fluidPage(
  plotlyOutput("scatter"),
  plotlyOutput("bars")
)
server <- function(input, output, session) {
View us-states.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View leaflet-subapp.Rmd
---
title: "Subapp test"
output: html_document
runtime: shiny
---
Check your JS console for errors
```{r}
library(shiny)
View flex-shiny-session.Rmd
---
title: "Untitled"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
runtime: shiny
---
```{r setup, include=FALSE}
View proxy-dashboard.Rmd
---
title: "dash"
output: flexdashboard::flex_dashboard
runtime: shiny_prerendered
---
```{r setup, include=FALSE}
library(tidyverse)
library(plotly)
You can’t perform that action at this time.