How to programmatically configure Shiny app settings (size, instances, max workers...) on shinyapps.io using rsconnect?

Hi everyone,

I'm trying to programmatically deploy and configure Shiny apps on shinyapps.io. I'm currently on a Basic level subscription.

I would like to use the rsconnect package to adjust some of the settings that are available through the shinyapps.io web interface—such as instance size, number of instances, or the maximum number of workers.

After reviewing the rsconnect R package documentation, I tried using the following function:

configureApp(appDir, appName, account, size = 'xxxlarge', instances = 3)

With this command, I'm only able to set the instance size. If I include the instances argument, I get the following error:

Error in `PUT()`:
! <https://api.shinyapps.io/v1/applications/14687548/properties/application.instances.count?force=0> failed with HTTP status 400
Unsupported property: application.instances.count

I also tried using:

setProperty(propertyName, propertyValue, appPath, appName, account)

Where propertyName is based on the output of showProperties(appName, account). For example:

rsconnect::setProperty('application.shiny.scheduler.max.processes', 10, appName, account)

However, although this doesn't return any error, the property value is not updated either.

I'd really appreciate any help in solving this issue—or at least confirming whether changing these settings is currently unsupported through rsconnect on shinyapps.io.

Thanks in advance!
Jorge