Hello!
When I try to publish my Shiny app to "shinyapps.io" I get the following error message: "path should be to files within the project directory"
Any ideas what I'm doing wrong? I have the file saved as app.r
Here is my code (note that "df" is a 512x66 dataframe that is uploaded into my session):
library(shiny)
#Input Functions
ui <- fluidPage(
titlePanel("Library Program Feedback"),
selectInput(inputId = "what", label = "What Day of the Week?",
choices = c("Monday Morning", "Monday Afternoon", "Monday Evening",
"Tuesday Morning", "Tuesday Afternoon", "Tuesday Evening",
"Wednesday Morning", "Wednesday Afternoon", "Wednesday Evening",
"Thursday Morning", "Thursday Afternoon", "Thursday Evening",
"Friday Morning", "Friday Afternoon", "Friday Evening",
"Saturday Morning", "Saturday Afternoon", "Sunday")),
selectInput(inputId = "how", label = "How Did You Hear?",
choices = c("Facebook","Word of Mouth","Library Website","Newspaper","In-house Marketing","Other")),
selectInput(inputId = "attended", label = "Program Attended",
choices = c("Movies", "Lecture", "Workshop", "Large Event", "Book Club",
"Speaker/Performer", "Arts/Crafts", "Storytime", "STEAM")),
selectInput(inputId = "active_passive", label = "Active/Passive",
choices = c("Adult Active", "Adult Passive", "Children's Active", "Children's Passive")),
selectInput(inputId = "adult_childrens", label = "Adult/Children's",
choices = c("Adult", "Children's")),
tableOutput("table")
)
#Output Functions
server <- function(input, output) {
output$table <- renderTable(df)
}
#Knit Componets Together
shinyApp(ui = ui, server = server)