Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Allen trestletech

View GitHub Profile
@trestletech
trestletech / .gitignore
Last active Aug 29, 2015
An analysis of todo.txt lists from the todo.txt++ project.
View .gitignore
login.json
.Rproj.user
@trestletech
trestletech / .gitignore
Last active Apr 12, 2017
Demonstration of file-system persistence in ShinyApps.io.
View .gitignore
.Rproj.user
.Rhistory
.RData
View example.Rmd
---
title: "ShinyPres"
runtime: shiny
output: ioslides_presentation
---
## Shiny Presentation
This R Markdown presentation is made interactive using Shiny. The viewers of the presentation can change the assumptions underlying what's presented and see the results immediately.
@trestletech
trestletech / README.md
Last active Aug 29, 2015
Configure Shiny Server (Pro) to use different libraries for different locations/applications.
View README.md

Below are two approaches to configuring applications to use different sets of libraries in Shiny Server. The envir file only works in Shiny Server Pro, as it relies on the exec_supervisor argument. The other will work in either.

View .gitignore
.vagrant
pkg
src
bin
@trestletech
trestletech / keybase.md
Created Jun 16, 2014
keybase.io Verification
View keybase.md

Keybase proof

I hereby claim:

  • I am trestletech on github.
  • I am trestletech (https://keybase.io/trestletech) on keybase.
  • I have a public key whose fingerprint is BEB4 8BDF C60B 99A9 203B 9361 3E37 05BF 1EA7 87A9

To claim this, I am signing this object:

@trestletech
trestletech / .gitignore
Last active Aug 29, 2015
Slides from RStudio's presentation on Shiny at R/Finance 2014. Hosted version available here: https://trestletech.shinyapps.io/rfinance2014/an-introduction-to-rstudio-shiny.Rmd#1
View .gitignore
.Rproj.user
.Rhistory
.RData
@trestletech
trestletech / hidden.Rmd
Created Apr 17, 2014
includeRmd in Shiny
View hidden.Rmd
---
title: "hidden"
output: html_document
---
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
```{r}
@trestletech
trestletech / server.R
Last active Nov 1, 2018
Example Shiny App showing the number of current sessions.
View server.R
library(shiny)
# Create a reactive object here that we can share between all the sessions.
vals <- reactiveValues(count=0)
shinyServer(function(input, output, session) {
# Increment the number of sessions when one is opened.
# We use isolate() here to:
# a.) Provide a reactive context
View server.R
library(shiny)
library(ggplot2)
authorized <- TRUE
shinyServer(function(input, output, session) {
if (authorized) {
data <- iris
p <- qplot(Sepal.Width, Sepal.Length, data = iris, color = Species)