Skip to content

Commit

Permalink
prepare for release
Browse files Browse the repository at this point in the history
JosiahParry committed May 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 444f80e commit 261b184
Showing 20 changed files with 5,148 additions and 66 deletions.
6 changes: 5 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
@@ -6,4 +6,8 @@
^dev$
^README\.Rmd$
^README\.md$
^.Rprofile$
^.Rprofile$
^.github/$
^src/vendor/$
^src/rust/vendor$
.github
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
config.log
config.status
autom4te.cache
.Rproj.user
.Rprofile
.Rprofile
17 changes: 12 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
Package: arcgisplaces
Title: What the Package Does (One Line, Title Case)
Title: Search for POIs using ArcGIS 'Places Service'
Version: 0.0.0.9003
Authors@R:
person("Josiah", "Parry", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-9910-865X"))
Description: What the package does (one paragraph).
Description: The ArcGIS 'Places service' is a ready-to-use location
service that can search for businesses and geographic locations around
the world. It allows you to find, locate, and discover detailed
information about each place. Query for places near a point, within a
bounding box, filter based on categories, or provide search text.
'arcgisplaces' integrates with 'sf' for out of the box compatibility
with other spatial libraries.
License: Apache License (>= 2)
Encoding: UTF-8
Language: en
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Imports:
arcgisutils (>= 0.2.0.9001),
arcgisutils (>= 0.3.0),
cli,
httr2 (>= 1.0.0),
rlang,
wk
Config/rextendr/version: 0.3.1.9000
SystemRequirements: Cargo (Rust's package manager), rustc
SystemRequirements: Cargo (Rust's package manager), rustc, OpenSSL
Suggests:
sf
Depends:
R (>= 2.10)
LazyData: true
Remotes: r-arcgis/arcgisutils
Remotes:
r-arcgis/arcgisutils
1 change: 1 addition & 0 deletions R/core-near-point.R
Original file line number Diff line number Diff line change
@@ -108,6 +108,7 @@ near_point <- function(

#' Create a prototype data.frame for the near-point query
#' @keywords internal
#' @noRd
near_point_ptype <- function() {
geometry <- structure(
list(),
9 changes: 3 additions & 6 deletions R/core-place-details.R
Original file line number Diff line number Diff line change
@@ -24,14 +24,13 @@
#' res <- place_details(place_ids)
#' }
#' @references [API Documentation](https://developers.arcgis.com/rest/places/place-id-get/)
#' @returns an sf object
place_details <- function(
place_id,
requested_fields,
icon = NULL,
token = arc_token(),
.progress = TRUE
) {

.progress = TRUE) {
# place_id must be a character vector with no NA values
check_character(place_id)

@@ -113,7 +112,5 @@ place_details <- function(
)
)

res

res
}

1 change: 1 addition & 0 deletions R/extendr-wrappers.R
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ parse_categories <- function(x) .Call(wrap__parse_categories, x)

#' Parse `/categories/{categoryId}` results vectorized
#' @keywords internal
#' @noRd
parse_category_details <- function(x) .Call(wrap__parse_category_details, x)

near_point_ <- function(x, y, radius, category_id, search_text, token) .Call(wrap__near_point_, x, y, radius, category_id, search_text, token)
Loading

0 comments on commit 261b184

Please sign in to comment.