I've setup a Shiny App using docker shiny image and all works well until I attempt to call API using httr package. From what I can get I'm unable to access internet from the App as I get the Timeout message from multiple sites, and verified the work from going through web browser. Wondering what setting I need to change?
From the RStudio Console within the App:
> library(httr)
> r <- GET("http://httpbin.org/get")
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached: [httpbin.org] Connection timed out after 10000 milliseconds
Here is my DockerFile:
FROM rocker/tidyverse
RUN apt-get update
RUN apt-get install -y libpq-dev
RUN R -e 'install.packages("RPostgres")'
RUN R -e 'install.packages("DT")'