Access outside the proxy server

I am trying to make an interactive version of my ggplot2 using the plotly package. It works great when I do this from a personal computer. Unfortunately, I'm at work, on a Windows machine, behind a proxy server, and it cannot connect to the talking server. When looking at the source of the code, I think the problem may be with the postFrom function from RCurl . I tried adding a proxy to options(RCurlOptions = list(proxy="http://proxyurl:8080")) , but this does not seem to improve the situation. Is a workaround known?

 library(httr) set_config(use_proxy(url="http://proxy.xxx.fr",port=8080,username="",password="")) options('RCurlOptions'= c(options('RCurlOptions'), list(proxy = 'http://proxy.xxxx.fr:8080'))) library(plotly) set_credentials_file(username="baptiste", api_key="xxxx") require(plotly) p2 <- qplot(1,1) py <- plotly(username="baptiste") out <- py$ggplotly(p2) # Error in function (type, msg, asError = TRUE) : couldn't connect to host 
+8
r proxy plotly
source share
2 answers

pub$makecall in plotly.R overwrites your global RCurlOptions. I sent a transfer request to fix this.

+4
source share

I think if you set the RCurl parameters as follows:

 opts <- list( proxy = "myweb.proxy.com", proxyusername = "myproxyuser", proxypassword = "myproxypassword", proxyport = 8080 ) options(RCurlOptions = opts) 

Then you should be able to connect to the host, at least this works for me behind my proxy.

+3
source share

All Articles