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" 'rBind' is defunct. #234

Open
AndresLugoCas opened this issue Jul 13, 2021 · 5 comments
Open

Error" 'rBind' is defunct. #234

AndresLugoCas opened this issue Jul 13, 2021 · 5 comments

Comments

@AndresLugoCas
Copy link

Hi,

I am trying to reproduce the example of two datasets integrated but I am having a problem:

x.sp = Reduce(snapRbind, x.sp.list);
Error: 'rBind' is defunct.
Since R version 3.2.0, base's rbind() should work fine with S4 objects

I don't know how to solve it. Thank you

@kgj1234
Copy link

kgj1234 commented Aug 1, 2021

I was able to solve this by downloading the source code, editing snapRbind (the only file that appears to use the Matrix::rBind function) replacing each instance of Matrix::rBind with rbind, then compiling the source code and installing as an R package. This appears to give the correct result.

@murphchuyi
Copy link

I came across the same error, but I couldn't call my own package as I was working in the cloud computing environment as suggested above. After searching on the stackoverflow, I found following solutions, hoping this would help others:

library(SnapATAC)
# download snap-utilities.R file, and replace each Matrix::rBind with rbind, 
# and then save it as new_snapRbind.r file
source('new_snapRbind.r') 
environment(new_snapRbind) = asNamespace('SnapATAC')
assignInNamespace("snapRbind", new_snapRbind, ns = "SnapATAC")

@khain2650
Copy link

hi all, hope someone may be able to help me with this issue. I also ran into the 'rBind is defunct' error, and resolved it using murphchuyi's method above. However, now when I try to run snap = snapRbind(x.landmark.sp, x.query.sp), I get 'Error in newJaccard() : could not find function "newJaccard"'

Would greatly appreciate it if folks have any insight!

@hengbingao
Copy link

I also meet the same error: Error in newJaccard() : could not find function "newJaccard". I wonder if anyone had solved it?

@karinajhingan
Copy link

I found that downloading some of the files and adding the code on the bottom (in this exact order) to the top of my R file worked to solve the issue with Error in new Jaccard as this makes those necessary function that snapBind calls available as a source:

( new_snapRbind.R is the snap-utilities.R file downloaded and I replaced all the Matrix::rBind with base::rbind, I left all the other files unchanged)

source("pathto/new_snapRbind.R")
source("pathto/jaccard-class.R")
source("pathto/dimReduct-class.R")
source("pathto/kgraph-class.R")

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

6 participants