Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
---
title: "Flexdashboard theming demo"
runtime: shiny
output:
flexdashboard::flex_dashboard:
theme:
bg: "#101010"
fg: "#FDF7F7"
primary: "#ED79F9"
base_font: !expr bslib::font_google("Prompt")
---
title: "My Themed R Markdown Document"
author: "Author: Your Name"
date: "Last update: `r format(Sys.time(), '%d %B, %Y')`"
output:
html_document:
theme:
bg: "#101010"
fg: "#FDF7F7"
primary: "#ED79F9"
---
title: "Flexdashboard theming demo"
runtime: shiny
output:
flexdashboard::flex_dashboard:
orientation: rows
theme:
version: 4
social: menu
source_code: embed
---
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")

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.
---
title: "Untitled"
output: html_document
---
```{sass, engine.opts = list(sass_fun = bootstraplib::bootstrap_sass)}
body
background-color: $primary;
```
---
title: "Untitled"
output:
html_document:
highlight: tango
---
```{r}
library(sass)
bg_black <- list(