From 760a2948c472b991d9a47d72357e10e9dff213a9 Mon Sep 17 00:00:00 2001 From: Josiah Parry Date: Fri, 5 Jul 2024 10:25:01 -0400 Subject: [PATCH 1/2] Increment version number to 0.3.0 --- DESCRIPTION | 2 +- NEWS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 1c3e478..856a5fc 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: arcgislayers Type: Package Title: An Interface to ArcGIS Data Services -Version: 0.2.1 +Version: 0.3.0 Authors@R: c( person("Josiah", "Parry", , "josiah.parry@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-9910-865X")), diff --git a/NEWS.md b/NEWS.md index 45c78b8..6493d64 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# arcgislayers (development) +# arcgislayers 0.3.0 - `arc_open()` will now work on any resource that works when `f=json` is set in the query parameters closes [#163](https://github.com/R-ArcGIS/arcgislayers/issues/163) - Now uses [`{arcpbf}`](https://r.esri.com/arcpbf/index.html) when a layer supports protocol buffers. From bf1e7ea1f0c4df2c21fdd77e89eea8b3b4d5117c Mon Sep 17 00:00:00 2001 From: Josiah Parry Date: Fri, 5 Jul 2024 10:27:27 -0400 Subject: [PATCH 2/2] add data_frame() to utility functions --- R/utils.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/utils.R b/R/utils.R index 8cf219f..6d0eb4a 100644 --- a/R/utils.R +++ b/R/utils.R @@ -56,7 +56,7 @@ list_fields <- function(x) { res <- infer_esri_type(data.frame()) } - res + data_frame(res) } #' @export @@ -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