plotly パッケージを使用して、ggplot2 のインタラクティブ バージョンを作成しようとしています。パソコンからやるとうまくいきます。残念ながら、私は仕事をしていて、プロキシの背後にある Windows マシンで、plotly サーバーに接続できません。コード ソースを参照すると、問題は のpostFrom
関数にある可能性があると思いますRCurl
。にプロキシを追加しようとしましたoptions(RCurlOptions = list(proxy="http://proxyurl:8080"))
が、改善されないようです。既知の回避策はありますか?
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