shiny.autoload.r on RStudioConnect

Is there any official guidance on enabling shiny.autoload.r in RStudio Connect - so that Shiny helpers R folder will automatically be loaded - from https://shiny.rstudio.com/reference/shiny/1.4.0/loadSupport.html

I'm trying to set this option currently in the RProfile.site file - but this leads to an error like:

2020/07/13 11:51:43.707779678 Error in value[[3L]](cond) : could not find function "monitorHandle"
2020/07/13 11:51:43.707800696 Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2020/07/13 11:51:43.707896875 Execution halted

I can't find any mentions about RStudioConnect and this feature on the www - is this best asked about here or in the shiny repo?

Larger log with some version info is:

07/13 11:51:43.412
linux distribution: Ubuntu 18.04.4 LTS (bionic)
07/13 11:51:43.412
Using Packrat dir /opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.6.3
07/13 11:51:43.422
Server version: 1.8.0.4-21
07/13 11:51:43.422
LANG: en_US.UTF-8
07/13 11:51:43.422
R version: 3.6.3
07/13 11:51:43.423
shiny version: 1.4.0
07/13 11:51:43.423
httpuv version: 1.5.2
07/13 11:51:43.423
rmarkdown version: 2.1
07/13 11:51:43.423
knitr version: 1.28
07/13 11:51:43.423
jsonlite version: 1.6.1
07/13 11:51:43.423
RJSONIO version: (none)
07/13 11:51:43.423
htmltools version: 0.4.0
07/13 11:51:43.424
Using pandoc: /opt/rstudio-connect/ext/pandoc2
07/13 11:51:43.650
Hook: Shiny loaded (this line comes from a package event hook in the RProfile.site file)
07/13 11:51:43.653
Using jsonlite for JSON processing
07/13 11:51:43.667
Using Shiny bookmarking base directory /opt/rstudio-connect/mnt/bookmarks
07/13 11:51:43.667
07/13 11:51:43.667
Starting R with process ID: '20766'
07/13 11:51:43.707
Error in value[[3L]](cond) : could not find function "monitorHandle"
07/13 11:51:43.707
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
07/13 11:51:43.707
Execution halted

I managed to get something working by upgrading to shiny 1.5

Sadly that's broken a few other things ... including the globals loading seems different now... but it's progress and I can start to test and fix things :slight_smile:

1 Like