I am trying to publish my shiny app to RStudioConnect. In my app.R I have sourced a file from a parent directory. Though it works fine on my local machine, when I try to publish the app:
a) I am unable to view the files in the pane where we select files to be published
b) If I proceed with publishing, I get the error-> Paths should be to files within the project directory.
Our aim was to have this file common to all our projects so that everyone can just source the same file instead of rewriting. But since the file is not in the same directory as app.R, it isn't being published.
Can anyone suggest a workaround or a better approach for reusing common files?