RCurl default proxy settings

后端 未结 1 1707
一个人的身影
一个人的身影 2021-01-07 08:28

I\'m working here behind proxy so I need to configure my connection. It works well with defining options list and calling getURL:

opts <- list(
  proxy            


        
相关标签:
1条回答
  • 2021-01-07 08:46

    I regret to hurry up posting question. The solution was really at the hand, at RCurl FAQ page. There is an option RCurlOptions which can be defined at the Rprofile.site file of R

    But I'm still in trouble because RGoogleAnalytics library seems to overwrite this.

    For completeness, here is the code:

    opts <- list(
      proxy         = "http://****",
      proxyusername = "****", 
      proxypassword = "*****", 
      proxyport     = ****
    )
    
    options(RCurlOptions = opts)
    
    getURL("http://stackoverflow.com")
    
    0 讨论(0)
提交回复
热议问题