Skip to content

Instantly share code, notes, and snippets.

View kellobri's full-sized avatar

kellobri

View GitHub Profile
---
title: "Visualizing the ocean floor"
output: html_document
params:
data: "hawaii"
---
```{r include = FALSE}
library(marmap)
library(ggplot2)
@kellobri
kellobri / test-sf.Rmd
Last active September 25, 2021 00:45
Test R Markdown with sf - Examples by Edzer Pebesma
---
title: "Test `sf` R Markdown"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Vignette 3 by Edzer Pebesma
@kellobri
kellobri / azure-pipelines.yml
Created June 17, 2021 14:26
RStudio Connect Deployment Pipeline Template
#
# RStudio Connect Deployment Pipeline Template
# Includes optional steps
#
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
@kellobri
kellobri / app.R
Created May 14, 2021 00:33
Bookmarking & Commenting App Template
#
# Bookmarking
# Annotations & Commenting
# Gitlink
#
library(shiny)
library(gitlink)
# Define UI for application that draws a histogram
@kellobri
kellobri / app.R
Created January 23, 2021 18:33
Shiny Application example: Bookmarkable and Commentable
#
# The basic multiple bookmark buttons example on Shiny Dev Center:
# https://shiny.rstudio.com/articles/bookmarking-state.html
#
library(shiny)
library(palmerpenguins)
library(ggplot2)
library(dplyr)
@kellobri
kellobri / inventory-alert.Rmd
Created January 2, 2020 16:13
Conditional Either/Or Example: Etsy Shop R Markdown Report with Blastula Custom Email
---
title: "Action Required: Low Inventory Alert!"
output: blastula::blastula_email
---
<img src="low-inventory-banner.png">
A low inventory alert has been triggered - Review the current inventory levels below to determine which filament colors need to be replenished today.
### Current inventory by unit color:
@kellobri
kellobri / etsy-shop-report.Rmd
Last active March 21, 2024 15:16
Conditional Suppression Example: Etsy Shop R Markdown Report with Blastula Custom Email
---
title: "Cookie Cutter Shop Report"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(blastula)
```
@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."),
@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 / 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]
---