Error in deploying RMarkdown file: chunk with long time evaluation

I would like to know how can I manage to deploy my Rmarkdown file when I have a chunk that takes time to evaluate.

When I set eval = FALSE I am able to deploy with no problem, bu when I set eval = TRUE I have an error message:

An error has occurred
Unable to connect to worker after 60.00 seconds; startup took too long. Contact the author for more information.

Is there anything I can do? Or its about the eval parameter?

Thanks

You are deploying to shinyapps.io? Is there anything in the log files that might help you to find out why executing that chunk takes so much time?

These posts might be interesting for you