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)
r proxy plotly
baptiste
source share