我正在尝试使用plotly包制作我的ggplot2的交互式版本.当我从个人电脑上这样做时,它工作正常.不幸的是,我正在工作,在代理后面的Windows机器上,它无法连接到阴谋服务器.浏览代码源,我认为问题可能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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
807 次 |
| 最近记录: |