wiki:udg/ecoms/RPackage/setup_proxy

Version 3 (modified by juaco, 7 years ago) (diff)

--

Setting a proxy configuration in R

  • Step 1. Install devtools package if not yet installed
install.packages("devtools")
library(devtools)
  • Step 2. Set configuration for your proxy

To this aim, the utility set_config of package httr is used (Note that httr is a dependency of package devtools, and hence it is already installed in your system)

require(httr)
set_config(use_proxy(url = "http://url_of_your_proxy.net", port = 9999, username = "user", password = "password"))