Skip to content

Commit

Permalink
fix: refactor guess_layer_format() for more robustness (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle authored Mar 15, 2024
1 parent 383031d commit 0480bb0
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 0480bb0

Please sign in to comment.