Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
randef1ned committed Apr 21, 2024
1 parent b0ca4e9 commit af0aaaa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:

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

- name: Configure and setup Intel MKL environment
run: sudo apt install intel-mkl-full

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: diffusr
Type: Package
Title: Network Diffusion Algorithms
Version: 0.2.2
Version: 0.2.3
Date: 2018-04-20
Authors@R: person("Simon", "Dirmeier",
email = "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion R/is.dgCMatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ assert_dgCMatrix <- function(adj_matrix, non_negative = TRUE) {
} else if (non_negative && any(adj_matrix@x < 0)) {
stop(paste("Error: Assertion on 'adj_matrix' failed: Element",
seq_along(adj_matrix@x)[adj_matrix@x < 0][1], "is not >= 0."))
} else if (colAnyNAs(adj_matrix)) {
} else if (sum(colAnyNAs(adj_matrix))) {
stop("Error: NAs in the matrix.")
}
}

0 comments on commit af0aaaa

Please sign in to comment.