2015-01-03 8 views
0

RNeo4j의 startGraph를 호출하려고하면 오류를 계속 해결할 수 없습니다 호스트 : http. neo4j 서버가 작동하고 로컬 및 원격 호스트의 브라우저가 올바른 답을 리턴하지만 RStudio가 아닌 것은 확인했습니다. 나는 R 3.1.2와 R 3.1.0을 시도했다. 두 사람 모두 같은 반응을 보였다. sessionInfo()는 필요한 라이브러리가로드됩니다 보여줍니다RNeo4j 오류 : RStudio에서 graph = startGraph ("http :/localhost : 7474/db/data")를 발행 할 때 호스트를 확인하지 못했습니다.

> 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 
> 

답변

1

는 슬래시 전방 뒤이 포함되어 있는지 확인하고 http://를 사용

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

는 작동하는지 알려주세요.

+0

방금 ​​시도했습니다. (예 : msg, asError = TRUE) : ​​ 호스트 이름 : http : // > I : 함수를 사용할 때 오류가 발생했습니다. (형식, msg, asError = TRUE) : ​​ http_request와 curlPerform 함수를 조사하고 있었는데 매개 변수가 일치하지 않으면이 오류가 발생 했습니까? –

+0

당신은 http : // –

+0

으악을 사용해야합니다. 그냥 오타가 :(. 나는 같은 문자열로 컷 & 붙여 넣기를 사용했다. 고마워요! –