An error when deploying R shiny

Hi all,

my shiny app is running locally, but when I'm trying to deploy it to shinyapps using rsconnect deployApp(), it published but getting an error message like this in the logs:

-------- in shinyapps log--------
Error in file(file, "rt") : cannot open the connection
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
Execution halted

and

Warning in file(file, "rt") :
cannot open file '(my file pathway)': No such file or directory
Error in file(file, "rt") : cannot open the connection
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
Execution halted

what is this ?
You may need to reconsider how you structure your app and refer to paths; you should adopt an approach based on relative paths; as when you deploy to a server (another machine) it will put you into a filespace that you cant predict the exact location of, all that you can know is that your main folder will be placed somewhere, and its subfolders will be within it.