Skip to content

Commit c50e345

Browse files
committed
stop async trying to run on shinyapps
1 parent cfe7655 commit c50e345

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

inst/shiny/modules/select_async.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ select_async_module_server <- function(id, common, parent_session, map) {
6262
common$poly <- poly_matrix
6363
}
6464

65+
if (Sys.getenv("R_CONFIG_ACTIVE") == "shinyapps"){
66+
common$logger %>% writeLog(type = "error", "Unfortunately asynchronous operations are not
67+
supported on the free tier of shinyapps.io - please download the
68+
package to run this module.")
69+
return()
70+
}
71+
72+
6573
# WARNING ####
6674
if (is.null(common$poly)) {
6775
common$logger %>% writeLog(type = "error", "Please draw a rectangle on the map")

0 commit comments

Comments
 (0)