Package: Rvoterdistance Type: Package Title: Voter Distance to Polling Locations and Geographic Boundaries Version: 2.1.0 Authors@R: person("Loren", "Collingwood", email = "lcollingwood@unm.edu", role = c("aut", "cre")) Description: Calculates the distance between each voter in a voter file (given lat/long coordinates or sf point geometries) and multiple polling or vote-by-mail drop box locations. Returns nearest location, k-nearest locations, or all locations within a distance threshold. Also computes minimum distance from voters to geographic boundaries such as rivers, state borders, or district lines provided as 'sf' line or polygon geometries. Core computation uses the Haversine formula and spherical cross-track distance implemented in C++ via 'Rcpp'. License: GPL (>= 2) URL: https://github.com/lorenc5/Rvoterdistance BugReports: https://github.com/lorenc5/Rvoterdistance/issues Encoding: UTF-8 LazyData: true Depends: R (>= 4.0) Imports: Rcpp (>= 1.0.0) Suggests: sf, ggplot2, rdrobust, testthat (>= 3.0.0), knitr, rmarkdown LinkingTo: Rcpp Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.2 VignetteBuilder: knitr Config/testthat/edition: 3 Repository: https://lorenc5.r-universe.dev Date/Publication: 2026-05-29 18:00:16 UTC RemoteUrl: https://github.com/lorenc5/rvoterdistance RemoteRef: HEAD RemoteSha: 7627243b8eff87ece4245aff58832f3c65d318b7 NeedsCompilation: yes Packaged: 2026-10-10 16:46:33 UTC; root Author: Loren Collingwood [aut, cre] Maintainer: Loren Collingwood