R中包xml2的问题 - 与SSL的连接

时间:2015-12-16 16:43:17

标签: r xml2

我尝试使用read_xml(包xml2)初始化连接,但似乎返回了SSL的问题。

我试过这段代码:

sucupira = "https://sucupira.capes.gov.br/sucupira/public/consultas/coleta/producaoIntelectual/listaProducaoIntelectual.jsf"
test <- read_xml(sucupira)

它返回了这个错误:

Error in open.connection(x, "rb") : 
 Peer certificate cannot be authenticated with given CA certificates

我不知道为什么会这样。

使用httr,这有效:

library(httr)
set_config( config( ssl_verifypeer = 0L ))
GET(sucupira) 

0 个答案:

没有答案