Something wrong with fileDependencies.R(file) when deploying

I wrote a shinyapp based on shinydashboard, and when I deployed it to, it has warning messages say:

1: In fileDependencies.R(file) :
Failed to parse C:/Users/feiwuu/AppData/Local/Temp/Rtmp42sbBV/file4dc4f7a3a5/server.R ; dependencies in this file will not be discovered.
2: In fileDependencies.R(file) :
Failed to parse C:/Users/feiwuu/AppData/Local/Temp/Rtmp42sbBV/file4dc4f7a3a5/ui.R ; dependencies in this file will not be discovered.

And when I open the deployed app, it has error message says:
An error has occurred. Check your logs or contact the app author for clarification.

Did anyone knows what's wrong when this situation happens?
Looking forward to your answer. THX

Can you share the files ? I had a problem once because of encoding and special character in those files. It was accented character in french.
I don't know if it could be related.


I think it's exactly the problem. I have some Chinese characters in server.R file, and once I changed them to English, it can be deployed.

Thanks a lot for your help.

Glad it works!

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

1 Like