Skip to content

Instantly share code, notes, and snippets.

View kellobri's full-sized avatar

kellobri

View GitHub Profile
@kellobri
kellobri / minprocessmgmt.R
Created April 11, 2025 19:23
Basic R script to check and update min processes on a piece of interactive Connect content
#' ---
#' title: "Scheduled Min Process Management"
#' ---
# Every time this script runs, it should check the minimum process setting value for a given piece of content
# If it finds that min processes are set to something other than 0 or NULL, it will set them back to O
# If it finds that min processes are set to 0 or NULL, it will set them to 1
library(connectapi)
@kellobri
kellobri / public-access-interactive.Rmd
Created July 9, 2024 14:57
Posit Connect Public Access Analysis for Interactive Content with Usage Data
---
title: "Public Access Content Analysis with Usage Data"
output: html_document
date: "2024-07-09"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
---
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."),