Skip to content

Commit

Permalink
better error message for non-R object in parquet file
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-brokamp committed Oct 2, 2024
1 parent 718254a commit 6bf9fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/read_write_dpkg.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
read_dpkg_metadata <- function(x) {
x_a <- arrow::open_dataset(x)
if (length(x_a$metadata$r$attributes$class) == 0) {
rlang::abort("parquet file does not appear to contain an R object")
rlang::abort("parquet file does not contain R specific metadata created when saving with the arrow package")
}
if (!"dpkg" %in% x_a$metadata$r$attributes$class) {
rlang::abort("R object in the parquet file must be class 'dpkg'")
Expand Down

0 comments on commit 6bf9fa4

Please sign in to comment.