From 6310f8a6d1f110f55ad5116e8c50f6644b4968e4 Mon Sep 17 00:00:00 2001 From: Michel Lang Date: Wed, 31 Jan 2024 11:11:08 +0100 Subject: [PATCH] added check for converter --- R/as_data_backend.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/as_data_backend.R b/R/as_data_backend.R index 361a4b84c..4f9777899 100644 --- a/R/as_data_backend.R +++ b/R/as_data_backend.R @@ -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)