1 min read

Deploying bioconductor shiny apps

command for deploying shiny apps rsconnect::setAccountInfo(...)

Deployment credentials removed during migration. you can get above info from https://www.shinyapps.io/admin/#/tokens

When I was first trying to deploy my R shiny app (which uses bioconductor packages) on shinyapps.io, I received the following error:

> rsconnect::deployApp()
Preparing to deploy application...DONE
Uploading bundle for application: 342263...DONE
Deploying bundle: 1371638 for application: 342263 ...
Waiting for task: 525534110
  error: Parsing manifest
################################ Begin Task Log ################################
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 525534111 failed: Error parsing manifest: Unable to determine package source for Bioconductor package BiocGenerics: Repository must be specified

In order to get rid of this error, make sure that the bioconductor repository is configured properly.

library(BiocManager) options(repos = BiocManager::repositories())

Once this code was executed, I tried deploying my app again -

> deployApp()
Preparing to deploy application...
Update application currently deployed at
https://aartrama.shinyapps.io/genenames-to-geneids/? [Y/n] Y
DONE
Uploading bundle for application: 342263...DONE
Deploying bundle: 1371644 for application: 342263 ...
Waiting for task: 525534413
  building: Building image: 1384537
  building: Fetching packages
  building: Installing packages
  building: Installing files
  building: Pushing image: 1384537

This time, I did not receive any errors.

https://stackoverflow.com/questions/58561574/r-shinyapps-io-error-deploying-app-unable-to-determine-package-source-for-bioco