Skip to content

Instantly share code, notes, and snippets.

@kellobri
kellobri / test-sf.Rmd
Last active Sep 25, 2021
Test R Markdown with sf - Examples by Edzer Pebesma
View test-sf.Rmd
---
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 Jun 17, 2021
RStudio Connect Deployment Pipeline Template
View azure-pipelines.yml
#
# RStudio Connect Deployment Pipeline Template
# Includes optional steps
#
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
@kellobri
kellobri / app.R
Created May 14, 2021
Bookmarking & Commenting App Template
View app.R
#
# Bookmarking
# Annotations & Commenting
# Gitlink
#
library(shiny)
library(gitlink)
# Define UI for application that draws a histogram
@kellobri
kellobri / app.R
Created Jan 23, 2021
Shiny Application example: Bookmarkable and Commentable
View app.R
#
# 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 Jan 2, 2020
Conditional Either/Or Example: Etsy Shop R Markdown Report with Blastula Custom Email
View inventory-alert.Rmd
---
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 Jan 1, 2020
Conditional Suppression Example: Etsy Shop R Markdown Report with Blastula Custom Email
View etsy-shop-report.Rmd
---
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 Nov 19, 2020
How-To: Leverage R Markdown output files to create simple ETL processes on RStudio Connect (These are two separate data assets)
View app.R
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 Apr 18, 2019
Example of R Markdown documents that read/write data to a top-level persistent storage directory on RStudio Connect
View persistent-read-example.Rmd
---
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 Feb 21, 2019
Basic R Markdown template demonstrating saved variants and custom email generation with RStudio Connect
View rotation-emailer.Rmd
---
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 / basic-email.Rmd
Created Nov 26, 2018
Basic Email Report on RStudio Connect
View basic-email.Rmd
---
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}