Skip to content

Commit

Permalink
fix: refactor guess_layer_format() for more robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Mar 5, 2024
1 parent 383031d commit fc74572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/info.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ get_abstract_null <- function(x) {
}

guess_layer_format <- function(layer) {
if (any(layer$getDescription(pretty = TRUE)[["geometry"]])) {
if (!is.null(layer$getGeometryType())) {
"sf"
} else {
"data.frame"
Expand Down

0 comments on commit fc74572

Please sign in to comment.