Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy settings are not exported inside foreach block #28

Open
vipulg13 opened this issue Jan 28, 2021 · 1 comment
Open

Proxy settings are not exported inside foreach block #28

vipulg13 opened this issue Jan 28, 2021 · 1 comment

Comments

@vipulg13
Copy link

vipulg13 commented Jan 28, 2021

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants