wiki:udg/ecoms/RPackage/setup_proxy

Version 1 (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 in in 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="location_of_your_proxy", port=9999, username="user",password="password"))