I have a Shiny app that uses parallel::mclapply to run a simulation many times in parallel, then gathers all results and summarizes them. The app works fine on my local machine, but after deploying it to Shinyapps.io, it immediately fails when I hit my actionButton. The log gives a clue:
Warning in parallel::mclapply(1:input$simrep_count, function(i) { : all scheduled cores encountered errors in user code
Is there something that prevents using mclapply within shinyapps.io? Or am I just missing something?