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

FIX replace defunct Matrix::rBind with base::rbind #256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions R/snap-utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ snapRbind <- function(obj1, obj2){
if((length(bmat1) == 0) != (length(bmat2) == 0)){
stop("bmat has different dimentions in obj1 and obj2!")
}else{
bmat = Matrix::rBind(bmat1, bmat2);
bmat = base::rbind(bmat1, bmat2);
}
rm(bmat1, bmat2)
gc()
Expand All @@ -1362,7 +1362,7 @@ snapRbind <- function(obj1, obj2){
if((length(gmat1) == 0) != (length(gmat2) == 0)){
stop("gmat has different dimentions in obj1 and obj2!")
}else{
gmat = Matrix::rBind(gmat1, gmat2);
gmat = base::rbind(gmat1, gmat2);
}
rm(gmat1, gmat2)
gc()
Expand All @@ -1373,7 +1373,7 @@ snapRbind <- function(obj1, obj2){
if((length(pmat1) == 0) != (length(pmat2) == 0)){
stop("pmat has different dimentions in obj1 and obj2!")
}else{
pmat = Matrix::rBind(pmat1, pmat2);
pmat = base::rbind(pmat1, pmat2);
}
rm(pmat1, pmat2)
gc()
Expand All @@ -1386,7 +1386,7 @@ snapRbind <- function(obj1, obj2){
if((length(dmat1) == 0) != (length(dmat2) == 0)){
stop("dmat has different dimentions in obj1 and obj2!")
}else{
dmat = Matrix::rBind(dmat1, dmat2);
dmat = base::rbind(dmat1, dmat2);
}
rm(dmat1, dmat2)
gc()
Expand Down