Skip to content

Instantly share code, notes, and snippets.

View kellobri's full-sized avatar

kellobri

View GitHub Profile
@kellobri
kellobri / DiabetesData.csv
Created September 14, 2014 21:43
ShinyCCmaps-v1-ui
State County FIPSCodes Diabetes LeisureInactivity Obesity
Alabama Autauga 01001 12.1 27.9 31.3
Alabama Baldwin 01003 11.5 25.2 25
Alabama Barbour 01005 14.8 32.3 38.4
Alabama Bibb 01007 12.7 33.2 37.3
Alabama Blount 01009 13.2 29.8 30.9
Alabama Bullock 01011 17.6 32.8 43.2
Alabama Butler 01013 16.1 37.3 38.4
Alabama Calhoun 01015 13.2 33.2 31.5
Alabama Chambers 01017 15.7 35.3 39.7
@kellobri
kellobri / DiabetesData.csv
Created September 14, 2014 21:48
ShinyCCmaps-v1-kelly
Alabama Autauga 01001 12.1 27.9 31.3
Alabama Baldwin 01003 11.5 25.2 25
Alabama Barbour 01005 14.8 32.3 38.4
Alabama Bibb 01007 12.7 33.2 37.3
Alabama Blount 01009 13.2 29.8 30.9
Alabama Bullock 01011 17.6 32.8 43.2
Alabama Butler 01013 16.1 37.3 38.4
Alabama Calhoun 01015 13.2 33.2 31.5
Alabama Chambers 01017 15.7 35.3 39.7
@kellobri
kellobri / server.R
Last active August 29, 2015 14:07
ShinyCCmaps-v3-StateCompare
library(maps)
library(ggplot2)
library(dplyr)
set.seed(500)
states = c("alabama","arizona","arkansas","california",
"colorado","connecticut","delaware","district of columbia",
"florida","georgia","idaho","illinois",
"indiana","iowa","kansas","kentucky",
@kellobri
kellobri / server.R
Last active August 29, 2015 14:07
ShinyCCmaps-v2-3x3shell
library(maps)
library(ggplot2)
library(dplyr)
set.seed(500)
states = c("alabama","arizona","arkansas","california",
"colorado","connecticut","delaware","district of columbia",
"florida","georgia","idaho","illinois",
"indiana","iowa","kansas","kentucky",
@kellobri
kellobri / Day0.rb
Created January 5, 2015 19:37
equalitiesDay0
print "1. "
puts 4 == 2 * 2
print "2. "
puts 6 > 4
print "3. "
puts (12 * 2) > 10
print "4. "
@kellobri
kellobri / rsc-aws-linux2.md
Last active October 12, 2018 19:48
Basic Install & Configure RStudio Connect on Amazon Linux 2

Basic Install & Configure RStudio Connect on Amazon Linux 2

yum update -y
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Build R From Source | Ref: 2.1.2

@kellobri
kellobri / basic-email.Rmd
Created November 26, 2018 19:21
Basic Email Report on RStudio Connect
---
title: "Email Report and CSV File"
output: html_document
rmd_output_metadata:
rsc_email_subject: "CSV Data Report"
rsc_email_attachments:
- "df.csv"
---
```{r setup, include=FALSE}
@kellobri
kellobri / rotation-emailer.Rmd
Created February 21, 2019 22:10
Basic R Markdown template demonstrating saved variants and custom email generation with RStudio Connect
---
title: "Variants with Different Schedules"
output: html_document
params:
engineer:
label: "On-call Engineer:"
value: Kelly
input: select
choices: [Cole, Kris, Kelly, Sean]
---
@kellobri
kellobri / persistent-read-example.Rmd
Created April 18, 2019 21:06
Example of R Markdown documents that read/write data to a top-level persistent storage directory on RStudio Connect
---
title: "Read Persistent Data on RStudio Connect"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
---
```{r setup, include=FALSE}
library(flexdashboard)
@kellobri
kellobri / app.R
Last active April 10, 2023 09:20
How-To: Leverage R Markdown output files to create simple ETL processes on RStudio Connect (These are two separate data assets)
library(shiny)
library(DT)
data <- read.csv('https://colorado.rstudio.com/rsc/content/2352/data.csv')
ui <- fluidPage(
titlePanel("Basic Data Filter Application"),
hr(),
h4("This application presents data generated by a scheduled R Markdown process: ", tags$a(href="https://colorado.rstudio.com/rsc/content/2352", "See it here!")),
p("Use this framework to build out your own R Markdown-based ETL jobs hosted on RStudio Connect."),