Skip to content

Commit

Permalink
With options(rsconnect.packrat = TRUE) I got a more informative err…
Browse files Browse the repository at this point in the history
…or message. Once I installed S4Arrays from source (aka `BiocManager::install("S4Arrays", type = "source")`), it seems like things are working ok with `renv`. At rstudio/rsconnect#934 (comment) and that thread in general, I realized that `renv` might not always give informative error messages.
  • Loading branch information
lcolladotor committed Jul 28, 2023
1 parent 6aff6cd commit 72785eb
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ rsconnect::setAccountInfo(
options(repos = BiocManager::repositories())

## Deploy the app, that is, upload it to shinyapps.io
options(rsconnect.packrat = TRUE)
# options(rsconnect.packrat = TRUE)
## from http://rstudio.github.io/rsconnect/news/index.html#new-features-1-0-0
## The above looks like is only needed to get more informative error messages
## from what I see at https://github.com/rstudio/rsconnect/issues/934#issuecomment-1654104704
## and from what I saw myself. For example with that option set, I got this error:
#### ## End Task Log #########################################################################################################################################################################
#### Error: Unhandled Exception: Child Task 1322356013 failed: Error building image: Error fetching S4Arrays (1.0.4) source. Error downloading package source. Please update your BioConductor packages to the latest version and try again: <BioconductorPackageSource rep
## which I wasn't getting with renv.
rsconnect::deployApp(
appDir = here("code", "20_deploy_app_wholegenome_Abeta_and_pTau_microenv"),
appFiles = c(
Expand Down

0 comments on commit 72785eb

Please sign in to comment.