RNeo4j not installing in RStudio - r

Tried giving following command in RStudio
devtools::install_github("nicolewhite/RNeo4j")
Got following error
Installing github repo(s) nicolewhite/RNeo4j/master from hadley
Installing nicolewhite/RNeo4j.zip from https://github.com/hadley/nicolewhite/RNeo4j/archive/master.zip
Error: client error: (404) Not Found
Please advice what needs to be done to install the R Driver for Neo4J.

You can try the answer to my question here.
This was it:
devtools::install_git("https://github.com/nicolewhite/RNeo4j")
Hope this works!

Related

Unable to install package Sleuth in R

I've been trying to install the Sleuth package in R all morning and it keeps giving me errors. This is how I tried to install it:
if(!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("DESeq2")
BiocManager::install ("rhdf5")
install.packages("devtools")
devtools:: install_github("pachterlab/sleuth")
I did use the library() command.
I get the following error messages:
Error: object 'h5write.default' is not exported by 'namespace:rhdf5'
Execution halted
ERROR: lazy loading failed for package 'sleuth'
removing 'C:/Users/31625/OneDrive/Documents/R/win-library/4.1/sleuth'
I was having the same issue and found that there's current an open issue on Github discussing this problem.
Currently there is a workaround which was shared in the same issue on Github:
Run git clone https://github.com/pachterlab/sleuth
Remove the last line in ./sleuth/NAMESPACE which is the h5write.default that raises the error during installation - ignore the warning in the first line
Then in R: devtools::install('./sleuth/')
It worked for me while using Linux - ZorinOS and R 4.1.2 but it should work on Windows as well.
Someone also opened a PR to fix the whole issue but it seems they are not updating the package anymore (unfortunately).

Failed to download a package from github in Rstudio

When I want to download a package from github by Rstudio, the error message is like this:
devtools::install_github("akoyabio/phenoptr")
Downloading GitHub repo akoyabio/phenoptr#HEAD
Error: Failed to install 'phenoptr' from GitHub:
Line starting 'SystemRequir ...' is malformed!
And then I try to download the package to my PC and install package from local position. The error message appear again.
devtools::install_local("D:\phenoptr-master.zip")
Error: Failed to install 'phenoptr-master.zip' from local:
Line starting 'SystemRequir ...' is malformed!
I don't know why this happened. If anyone could give me some advice to solve the problem?
Thank you very much.
Mengfei Wang
The problem was probably caused by a faulty locale setting. Try setting your locale by running
Sys.setlocale("LC_ALL","en_US.UTF-8")
or
Sys.setlocale("LC_ALL","English")
before calling install_github().

Unable to install 'Velocyto.R' from Github

I am a beginner in R
trying to analyze my scRNA-seq data with velocyto.R in R studio.
Following velocyto tutorial, I tried installing velocyto.R as below:
library(devtools)
install_github("velocyto-team/velocyto.R")
But, an error pops up:
ERROR: compilation failed for package 'velocyto.R'
removing 'C:/Users/USER/Documents/R/win-library/3.6/velocyto.R'
Error: Failed to install 'velocyto.R' from GitHub:
(converted from warning) installation of package ‘C:/Users/USER/AppData/Local/Temp/RtmpukpRFl/file37346a812b86/velocyto.R_0.6.tar.gz’ had non-zero exit status
Is there anyone to face the same problem described above and succeed in resolving it after all?
I desperately need helps!
Thanks
As your error log says C:/..., you probably use Windows. According to velocyto's README it seems that this package runs only on unix-flavored systems with C++11, Open MP, boost, igraph and hdf5c++ libraries.
This can be the problem: read the velocyto's GitHub issue #40, maybe you'll need to run this under WSL...?

Error in running swirl package in R

I am not able to work in swirl package in R. I am able to install the swirl
package correctly. But while giving the library("swirl") command the error comes up.I have tried every thing like I am not able to find the answer of this error on internet. I have reinstalled R complete. I have tried changing directory. But still this error message is coming. Please help.This is the error message:
library("swirl")
Error in get(Info[i, 1], envir = env) :
cannot open file
'C:/Users/Devender/Documents/R/win-library/3.2/httr/R/httr.rdb': No such
file or directory
Error: package or namespace load failed for ‘swirl’
Thanks alot in advance
Try installing httr package. I think it will solve your problem.
You did not say which R version you are using.
Some Swirl packages are not available for few R versions as 3.2.2. You cant even download any courses from Github repositories into the Swirl if Swirl was successfully loaded in R.
You may want to re-install a different version of R to avoid this Swirl issue, and try again.

library(RNeo4j) Error in library(RNeo4j) : there is no package named ‘RNeo4j’

When pasting library(RNeo4j) into the console I am getting the error above.
Running out of ideas. Please help, it might be very trivial
Have you tried to install the package yet?
install.packages("devtools")
devtools::install_github("nicolewhite/RNeo4j")

Resources