I would like to know why when I open a shiny app in r-studio I have to run all packages and files before run it the app. I would like just clic in the run app botton and that everything be loaded automatically. Is there a clean solution for this?
This is the error I have:
Listening on http://127.0.0.1:4659
Warning: Error in dropNulls: object 'df1' not found
61: dropNulls
60: getSliderType
59: sliderInput
df1 is a excel file and the code is in server.R in shinyServer(function(input, output) {})
df1=data.frame(read_excel("C:/Users/Desktop/Prueba/Base.xlsx", sheet = "1.1.1"))
and
library(readxl)
is before the "shinyServer(....)"