Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cassiodorus opened this issue Aug 1, 2022 · 0 comments
Open

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

cassiodorus opened this issue Aug 1, 2022 · 0 comments

Comments

@cassiodorus
Copy link

Well, I suppose this is something I have screwed up, but I am using R 4.2.1 (2022-06-23 ucrt), Rstudio 2022.07.1, Neo4j 4.4.5, Windows 11 Pro. Installing the neo4r from the "official" CRAN I cannot get it to behave reasonably.

con <- neo4j_api$new(
url = "http://localhost:7687",
user = "neo4j",
password = ""
)
con$ping()
[1] 200
con$get_version()
NULL
con$get_relationships()

A tibble: 1 x 1

labels

1 list(oidc_providers = list())

Return code 200 sounds good, but nothing further works. So I installed your fork (I have Rtools installed) and get:

devtools::install_github("davidlrosenblum/[email protected]",force=TRUE)
Downloading GitHub repo davidlrosenblum/[email protected]
✔ checking for file 'C:\Users\DH\AppData\Local\Temp\Rtmp2BTJ6o\remotes173c7adf4164\davidlrosenblum-neo4r-c0d5407/DESCRIPTION' ...
─ preparing 'neo4r':
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Omitted 'LazyData' from DESCRIPTION
─ building 'neo4r_0.2.0.tar.gz'

Installing package into ‘C:/Users/DH/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
Loading required package: magrittr
Loading required package: plyr
Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:plyr':

arrange, count, desc, failwith, id, mutate, rename, summarise,
summarize

The following objects are masked from 'package:base':

intersect, setdiff, setequal, union

Loading required package: reshape2
Loading required package: stringr
Loading required package: readr
Loading required package: digest
Loading required package: dbparser
Loading required package: data.tree
Loading required package: kableExtra

Attaching package: 'kableExtra'

The following object is masked from 'package:dplyr':

group_rows
  • installing source package 'neo4r' ...
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Note: possible error in 'preview_object(table, ': unused arguments (url = con$url, auth = con$auth)
    ** help
    *** installing help indices
    *** copying figures
    ** building package indices
    ** testing if installed package can be loaded from temporary location
    ** testing if installed package can be loaded from final location
    ** testing if installed package keeps a record of temporary installation path
  • DONE (neo4r)

library(neo4r)
con <- neo4j_api$new(

  • url = "http://localhost:7687", 
    
  • user = "neo4j", 
    
  • password = "<real password>",is_V4 = TRUE
    
  • )
    Error in initialize(...) : unused argument (is_V4 = TRUE)

It looks to me as though the installation worked, but I'm not a developer. I do not understand how is_V4 can be an unused argument when ?neo4j_new returns with Method new() Usage neo4j_api$new(url, user, password, db = "neo4j", is_V4 = TRUE)

I would greatly appreciate your help. This is part of an open source project focusing on the NLM MeSH codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant