Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thebioengineer/12c03a21c8ab66b5e1b16495ec78c24f to your computer and use it in GitHub Desktop.
Save thebioengineer/12c03a21c8ab66b5e1b16495ec78c24f to your computer and use it in GitHub Desktop.
Strange RStudio Notebooks behavior
---
output: html_document
editor_options:
chunk_output_type: inline
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(dplyr)
# remotes::install_github("thebioengineer/colortable")
library(colortable)
```
```{r cars}
z <- head(cars) %>%
mutate(speed = color_vctr(speed, text_color = c("green", "red","orange", rep("blue", 3))))
z
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment