My application works fine locally, and I can successfully deploy my application on shinyapps.io server, but when I try to download the application in my browser using the shinyapps URL, I get the following error message: “Error object”, data “not found”. I think this is because the variable 'data' reads from the csv file in my local directory. Is there any way to upload this csv file to shinyapps server? I tried this but found nothing.
Here is the code that I use to read in files. I get the file from the same working directory as my server.R and ui.R. Thanks
server.R
library(shiny) college = read.csv("college.csv")
ui.R (I added to this to find out if it fixes the problem, but it is not)
library(shiny) college = read.csv("college.csv")
r shiny
Kamal
source share