Proxy settings are not exported inside foreach block
Opened this issue · 1 comments
vipulg13 commented
Hello,
A call to a function, which uses proxy gateway that are defined in a global environment, is not working inside foreach block despite setting .export = ls(.GlobalEnv) and .packages = c("httr", "crul", "curl").
Though, I am able to execute the code successfully when I explicitly call 'crul::set_proxy(proxy(url))' inside foreach block. I would like to avoid setting proxy settings inside foreach block.
Can someone please suggest a workaround for this.
Thanks!
HenrikBengtsson commented
This is a good candidate for setting in ~/.Rprofile
so that it is applied automatically in all R processes when they start, including parallel workers.