Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed May 6, 2024
1 parent ae71c69 commit 199ea2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/altrep.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ new_sparse_real <- function(value, position, length) {
}

if (!is.integer(position)) {
if (any(round(position) != position)) {
if (any(round(position) != position, na.rm = TRUE)) {
offenders <- which(round(position) != position)

cli::cli_abort(
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/altrep.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
Code
new_sparse_real(1, NaN, 1)
Condition
Error in `if (any(round(position) != position)) ...`:
Error in `if (len_position > 0 && max(position) > length) ...`:
! missing value where TRUE/FALSE needed

---
Expand Down

0 comments on commit 199ea2a

Please sign in to comment.