Skip to content

Commit

Permalink
added check for converter
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg committed Jan 31, 2024
1 parent 9d7d7c0 commit 6310f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/as_data_backend.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ as_data_backend.data.frame = function(data, primary_key = NULL, keep_rownames =
if (is.character(primary_key)) {
assert_string(primary_key)
assert_choice(primary_key, colnames(data))
assert_integer(data[[primary_key]], any.missing = FALSE, unique = TRUE)
assert_integer(data[[primary_key]], any.missing = FALSE, unique = TRUE, lower = 0L)
} else {
if (is.null(primary_key)) {
row_ids = seq_row(data)
Expand Down

0 comments on commit 6310f8a

Please sign in to comment.