Issues setting app configuration

I am deploying apps in shinyapp.io and I need to change the app settings (such as size, workers count, instances, etc) programmatically by using rsconnect. However, I am getting the following error:

subprocess.CalledProcessError: Command '['Rscript', '-e', "rsconnect::setAccountInfo(name='XXXXXXXX', token='XXXXXXXXXX', secret='XXXXXXXXX'); rsconnect::configureApp(appName = 'XXXXXXXXXX', size = 'xxxlarge', account = 'XXXXXXXXX')"]' returned non-zero exit status 1.

I have tried using setProperty and configureApp but nothing seems to work. I would really appreciate any help to solve this issue.

Cheers,

Jorge

I'm guessing there's an issue with your account info. Use the accountInfo function to see the credentials the rsconnect package is working with and verify they're all accurate prior to calling configureApp.

Also, are you calling this function from the same project workspace as your shiny app?

1 Like

I believe the accountinfo is fine. But the function is being called in an external enviroment. I used rsconnect to host it on shiny apps and the run the command in the same local terminal. Is this the proper way to do it?