Skip to content

Commit

Permalink
Bump Roxygen version
Browse files Browse the repository at this point in the history
  • Loading branch information
randef1ned committed Jan 24, 2024
1 parent 1e505a1 commit 293a27d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Suggests:
lintr,
Matrix
VignetteBuilder: knitr
RoxygenNote: 7.3.0
RoxygenNote: 7.3.1
Encoding: UTF-8
Config/testthat/edition: 3
SystemRequirements: C++17
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ importFrom(checkmate,assert_integer)
importFrom(checkmate,assert_logical)
importFrom(checkmate,assert_number)
importFrom(checkmate,assert_numeric)
importFrom(checkmate,assert_vector)
importFrom(checkmate,check_matrix)
importFrom(checkmate,check_numeric)
importFrom(checkmate,test_atomic_vector)
Expand Down
5 changes: 0 additions & 5 deletions R/diffusr-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,5 @@
#' @useDynLib diffusr
#'
#' @importFrom Rcpp sourceCpp
#' @importFrom checkmate assert_vector
#' @importFrom sparseMatrixStats colAnyNAs
NULL

Check warning on line 55 in R/diffusr-package.R

View workflow job for this annotation

GitHub Actions / lint

file=R/diffusr-package.R,line=55,col=1,[blank_lines] Trailing blank lines are superfluous.
.onAttach <- function(libname, pkgname) {
assert_vector(colAnyNAs(matrix(0)))
}
4 changes: 4 additions & 0 deletions R/is.dgCMatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ is.dgCMatrix <- function(mat) {
#'
#' @export
#'
#' @importFrom sparseMatrixStats colAnyNAs
#'
assert_dgCMatrix <- function(adj_matrix, non_negative = TRUE) {
if (adj_matrix@Dim[1] != adj_matrix@Dim[2]) {
stop(paste("Error: Assertion on 'adj_matrix' failed: Must have exactly",
Expand All @@ -29,5 +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)) {
stop("Error: NAs in the matrix.")
}
}

0 comments on commit 293a27d

Please sign in to comment.