neo4j-rstats / neo4r

A Modern and Flexible Neo4J Driver
https://neo4j-rstats.github.io/user-guide/
Other
106 stars 30 forks source link

Error in initialize(...) : unused argument (is_V4 = TRUE) ==> "neo4j_api$new()" don't understand the argument #96

Open medseddik1999 opened 2 years ago

medseddik1999 commented 2 years ago

Hello , I have a issue , when I run :

`install_github("davidlrosenblum/neo4r@4.x") library(neo4r) packageVersion('neo4r')

0.2.0

con2neo4j <- neo4j_api$new(url = "server http url", user = "neo4j",password = "my_paasword" ,db="graph.db",isV4 = TRUE) ` or

con2neo4j <- neo4j_api$new(url = "server http url", user = "neo4j",password = "my_paasword" ,db="graph.db",is_V4 = TRUE)

or

con2neo4j <- neo4j_api$new(url = "server http url", user = "neo4j",password = "my_paasword" ,db="graph.db",isv4 = TRUE)

I have this error : >Error in initialize(...) : unused argument (is_V4 = TRUE)

and the only way to have a connection I run con2neo4j <- neo4j_api$new(url = "server http url", user = "neo4j",password = "my_paasword" ,db="graph.db") without is_V4=TRUE but a lot of important method don't work as get_labels , get_relationship and I have this error :

Error in if (con$is_V4 == TRUE) { : argument is of length zero.

I have a MacBook and I tried the code in Rstudio cloud and is always a same problem

davidlrosenblum commented 1 year ago

You can always run the cypher statement behind those things. Some of the function have been deprecated. E.g. call db.indexes is now show constraints.

Is_V4 is not needed and was removed over a year ago.

library(devtools) Loading required package: usethis install_github("davidlrosenblum/neo4r") Skipping install of 'neo4r' from a github remote, the SHA1 (4de7ea2e) has not changed since last install. Use force = TRUE to force installation library(neo4r)

con1 <- neo4j_api$new(url = "http://localhost:7474",user="neo4j",password=“xxxx",db="hcanalytics") [1] "Found Neo4j 4.x" con1$ping() [1] TRUE

On Jun 30, 2022, at 6:17 AM, midouseddik67200 @.***> wrote:

Hello , I have a issue , when I run :

@.***") library(neo4r) packageVersion('neo4r')

0.2.0

con2neo4j <- neo4j_api$new(url = "server http url", user = "neo4j",password = "my_paasword" ,db="graph.db",isV4 = TRUE) ` or

con2neo4j <- neo4j_api$new(url = "server http url", user = "neo4j",password = "my_paasword" ,db="graph.db",is_V4 = TRUE)

or

con2neo4j <- neo4j_api$new(url = "server http url", user = "neo4j",password = "my_paasword" ,db="graph.db",isv4 = TRUE)

I have this error :

Error in initialize(...) : unused argument (is_V4 = TRUE)

and the only way to have a connection I run con2neo4j <- neo4j_api$new(url = "server http url", user = "neo4j",password = "my_paasword" ,db="graph.db") without is_V4=TRUE but a lot of important method don't work as get_labels , get_relationship and I have this error :

Error in if (con$is_V4 == TRUE) { : argument is of length zero.

I have a MacBook and I tried the code in Rstudio cloud and is always a same problem

— Reply to this email directly, view it on GitHub https://github.com/neo4j-rstats/neo4r/issues/96, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBXAGBNPUP5N6FD4LZBCRLVRVX4VANCNFSM52IZYFJQ. You are receiving this because you are subscribed to this thread.