Skip to content

Commit

Permalink
add missing methods::
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed May 22, 2024
1 parent 2c46cfd commit 633175d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/coerce.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ coerce_to_sparse_tibble <- function(x) {
}

if (!methods::is(x, "dgCMatrix")) {
x <- as(x, "generalMatrix")
x <- as(x, "CsparseMatrix")
x <- methods::as(x, "generalMatrix")
x <- methods::as(x, "CsparseMatrix")
}

if (is.null(colnames(x))) {
Expand Down Expand Up @@ -148,8 +148,8 @@ coerce_to_sparse_data_frame <- function(x) {
}

if (!methods::is(x, "dgCMatrix")) {
x <- as(x, "generalMatrix")
x <- as(x, "CsparseMatrix")
x <- methods::as(x, "generalMatrix")
x <- methods::as(x, "CsparseMatrix")
}

if (is.null(colnames(x))) {
Expand Down

0 comments on commit 633175d

Please sign in to comment.