Skip to content

Commit

Permalink
add data_frame() to utility functions
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Jul 5, 2024
1 parent 760a294 commit bf1e7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ list_fields <- function(x) {
res <- infer_esri_type(data.frame())
}

res
data_frame(res)
}

#' @export
Expand All @@ -72,7 +72,7 @@ pull_field_aliases <- function(x) {
#' @rdname utils
list_items <- function(x) {
check_inherits_any(x, c("FeatureServer", "ImageServer", "MapServer"))
rbind(x[["layers"]], x[["tables"]])
data_frame(rbind(x[["layers"]], x[["tables"]]))
}

#' @export
Expand Down

0 comments on commit bf1e7ea

Please sign in to comment.