Skip to content

Commit af0aaaa

Browse files
committed
Bug fix
1 parent b0ca4e9 commit af0aaaa

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/pkgdown.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626

2727
- uses: r-lib/actions/setup-pandoc@v2
2828

29+
- name: Configure and setup Intel MKL environment
30+
run: sudo apt install intel-mkl-full
31+
2932
- uses: r-lib/actions/setup-r@v2
3033
with:
3134
use-public-rspm: true

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: diffusr
22
Type: Package
33
Title: Network Diffusion Algorithms
4-
Version: 0.2.2
4+
Version: 0.2.3
55
Date: 2018-04-20
66
Authors@R: person("Simon", "Dirmeier",
77
email = "simon.dirmeier@gmx.de",

R/is.dgCMatrix.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ assert_dgCMatrix <- function(adj_matrix, non_negative = TRUE) {
3131
} else if (non_negative && any(adj_matrix@x < 0)) {
3232
stop(paste("Error: Assertion on 'adj_matrix' failed: Element",
3333
seq_along(adj_matrix@x)[adj_matrix@x < 0][1], "is not >= 0."))
34-
} else if (colAnyNAs(adj_matrix)) {
34+
} else if (sum(colAnyNAs(adj_matrix))) {
3535
stop("Error: NAs in the matrix.")
3636
}
3737
}

0 commit comments

Comments
 (0)