I am trying to create a web application using brilliant. I need to download the package that I installed on my computer. For example:
## Contents ui.R: library(shiny) library(plyr) shinyUI(pageWithSidebar( headerPanel("Hello Shiny!"), sidebarPanel( sliderInput("obs", "Number of observations:", min = 0, max = 1000, value = 500) ), mainPanel( plotOutput("distPlot") ) )) ## Contents server.R: library(shiny) library(plyr) shinyServer(function(input, output) { output$distPlot <- renderPlot({ # generate an rnorm distribution and plot it dist <- rnorm(input$obs) hist(dist) }) })
This works fine if I run it locally (using runApp ), but when I try to run it through my server (the same computer), I get an error that the plyr package (or any other package that I try to use this way ) not installed. How can I use additional packages on a brilliant server?
r shiny shiny-server
Sacha epskamp
source share