In case you are struggling with neo4j v5.x, try to install with devtools::install_github("davidlrosenblum/neo4r@neo5")
devtools::install_github("davidlrosenblum/neo4r@neo5")
Refer the following link for other versions: https://github.com/davidlrosenblum/neo4r/branches/stale