have written to code to browse folder options. I am able to browse folder contents while run the app from rstudio pro, but once my app is published in to rconnect, unable to browse folder contents. because app is published in rstudio-connect account which doesn't have access to NAS shared drive.
I think you need to see with your IT so that RStudio Connect can access the NAS. Either by giving access to rstudio-connect user or, maybe better, by creating a new account to access the folder (or using an existing one maybe) and configuring your app in RStudio connect to use this account. See https://docs.rstudio.com/connect/user/settings-panel.html#set-executor
You may need your admin to configure RStudio Connect
https://docs.rstudio.com/connect/admin/process-management.html#process-management-runas
This configuration will allow to run your app using a specific user that will have the correct rights.
Otherwise, you may need to change the way you app or document access the data
Several options:
- Send the data locally with the app
- Use a databases that your app can access
- Use a API based storage (like S3)
- Expose your application using another app. see this use case:
Basic Builds :: How to update data in a Shiny App on RStudio Connect | by Kelly O'Briant | RStudio Connect Digest | Medium
Hope it helps.
1 Like