# On posix all requests mus be done from an extra session # otherwise the main session will deadlock. fetch_get <- function(...) { if (.Platform$OS.type == "windows") { httr::GET(...) } else { (function() { future::plan("multisession") v <- future::value(future::future({ httr::GET(...) })) future::plan("sequential") v })() } }