Issue
When trying to deploy a Shiny application to shinyapps.io, you receive a 'Forbidden' error and are unable to successfully publish your application.
Description
This error typically occurs when there is a mismatch between the account you're trying to deploy from and the target account on shinyapps.io. This can happen if you have multiple shinyapps.io accounts configured in your RStudio IDE.
Solution
To resolve this issue:
- Open RStudio IDE and navigate to Tools → Global Options → Publishing.
- Check which shinyapps.io accounts are currently connected.
- Verify that you are using the correct account for deployment:
- Remove any unnecessary account connections.
- Select the appropriate account for your deployment.
- If you need to deploy to a different account:
- Ensure you have the necessary permissions on the target account.
- Connect to the correct account through the Publishing settings.
- Try deploying your application again after confirming the correct account is selected.
If you're still having issues, you can reach out to Support by opening a ticket here.