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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
login.json | |
.Rproj.user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.Rproj.user | |
.Rhistory | |
.RData |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.vagrant | |
pkg | |
src | |
bin |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.Rproj.user | |
.Rhistory | |
.RData |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |