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

Does not work when proxy is used to connect to the internet #12

Closed
rfhb opened this issue Apr 12, 2019 · 2 comments
Closed

Does not work when proxy is used to connect to the internet #12

rfhb opened this issue Apr 12, 2019 · 2 comments
Assignees

Comments

@rfhb
Copy link
Owner

rfhb commented Apr 12, 2019

Main functions in the package use internet connections for retrieval of trial information over the internet. These functions do not work and raise a time out error if internet connections have to use a proxy. This is usually the case in corporate environments. Better support for automated detection and handling should be included in the ctrdata package (which uses package curl, which has functions for handling proxies but does not do this automatically).

@rfhb rfhb self-assigned this Apr 12, 2019
@rfhb
Copy link
Owner Author

rfhb commented Apr 12, 2019

A temporary remedy for simple proxies (no authentication) is to execute these commands before using package ctrdata:

# set proxy
Sys.setenv(http_proxy = curl::ie_get_proxy_for_url())
Sys.setenv(https_proxy = curl::ie_get_proxy_for_url())

@rfhb
Copy link
Owner Author

rfhb commented Apr 14, 2019

implemented / fixed with commit f3595e2

@rfhb rfhb closed this as completed Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant