Skip to content

Instantly share code, notes, and snippets.

@ClintWeathers
Created November 19, 2015 21:50
Show Gist options
  • Save ClintWeathers/4d0154f6ff33d9cec9ff to your computer and use it in GitHub Desktop.
Save ClintWeathers/4d0154f6ff33d9cec9ff to your computer and use it in GitHub Desktop.
Weirdness in RMarkdown/Shiny
---
title: "Testing1"
author: "JCW"
date: "November 19, 2015"
output:
html_document:
highlight: haddock
theme: cosmo
---
```{r}
library(DT)
```
### BC 1192
```{r, echo=TRUE}
datatable(bc1192) %>%
formatPercentage(6:7, digits = 2) %>%
formatCurrency(3:4)
```
In this Rmd, bc1192 is a dataframe in my environment list in RStudio.
If I put a bc1192 <- read.csv("bc1192.csv", stringsAsFactors = FALSE) in and read it in again from the Rmd, it works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment