0

当我尝试调用 RNeo4j 的 startGraph 时,它一直给我错误无法解析主机:http。我验证了 neo4j 服务器正在运行,本地和远程主机的浏览器返回正确的答案,但不是来自 RStudio。我试过 R 3.1.2 和 R 3.1.0。两人都给出了同样的回应。sessionInfo() 显示加载了必要的库:

> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RJSONIO_1.3-0  RNeo4j_1.0     rJava_0.9-6    RCurl_1.95-4.5
[5] rjson_0.2.15   bitops_1.0-6  

loaded via a namespace (and not attached):
[1] codetools_0.2-8 devtools_1.6.1  httr_0.6.1      igraph_0.7.1   
[5] pryr_0.1        Rcpp_0.11.3     stringr_0.6.2   tools_3.1.0    
> graph = startGraph("http:/localhost:7474/db/data")
Error in function (type, msg, asError = TRUE)  : 
  Could not resolve host: http
> 
4

1 回答 1

1

确保包含尾部正斜杠并使用http://

graph = startGraph("http://localhost:7474/db/data/")

让我知道这是否有效。

于 2015-01-03T19:51:49.183 回答