Connect admin guide, Appendix E (deployment): bundleApp syntax

There should be a triple colon for bundleApp, right? See sec. E.3.6
https://docs.rstudio.com/connect/1.5.0/admin/appendix-deployment-guide.html

pth <- 'C:/Users/xxx/Desktop/funShiny/dance'
fls <- rsconnect::listBundleFiles(pth)
Tgt <- list(appName = c('here'))
rsconnect:::bundleApp(Tgt, 
             appDir = pth,               
           appFiles = fls$contents, 
      appPrimaryDoc = fls$contents, 
      assetTypeName = 'dan',     
    contentCategory = 'bsn',  verbose = T,)

This did not work, but it was closer to working than with two colons.

Also, the next section (E.4) needs a double colon

rsconnect::accounts()

Great question! And thanks for reporting this! That appendix section is a good bit outdated, unfortunately, and is something we definitely need to clean up.

Some more modern approaches you might try to programmatic deployment are outlined here (note that they require a newer version of RStudio Connect. The latest is 1.7.6):

Overview: https://solutions.rstudio.com/deploy/overview/

API cookbook: https://docs.rstudio.com/connect/cookbook/deploying.html

A support article:

Examples with bash:

1 Like