{
  "_id": "6a19efa51d7bb097a09c9093",
  "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\",\nrole = c(\"aut\", \"cre\"))",
  "Description": "Calculates the distance between each voter in a voter file\n(given lat/long coordinates or sf point geometries) and\nmultiple polling or vote-by-mail drop box locations. Returns\nnearest location, k-nearest locations, or all locations within\na distance threshold. Also computes minimum distance from\nvoters to geographic boundaries such as rivers, state borders,\nor district lines provided as 'sf' line or polygon geometries.\nCore computation uses the Haversine formula and spherical\ncross-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",
  "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": {
    "Date": "2026-05-29 19:41:53 UTC",
    "User": "root"
  },
  "Author": "Loren Collingwood [aut, cre]",
  "Maintainer": "Loren Collingwood <lcollingwood@unm.edu>",
  "MD5sum": "73632cf5c20884ae3a41d01ef127d607",
  "_user": "lorenc5",
  "_type": "src",
  "_file": "Rvoterdistance_2.1.0.tar.gz",
  "_fileid": "0586e010fdd0691ce7d774e1888405470fb9dc0a52ebdaee16979cffab5bd9b4",
  "_filesize": 896093,
  "_sha256": "0586e010fdd0691ce7d774e1888405470fb9dc0a52ebdaee16979cffab5bd9b4",
  "_created": "2026-05-29T19:41:53.000Z",
  "_published": "2026-05-29T19:57:25.740Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78574470348,
      "time": 126,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7299587051"
    },
    {
      "job": 78574470333,
      "time": 141,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7299591820"
    },
    {
      "job": 78574470338,
      "time": 119,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7299584979"
    },
    {
      "job": 78574470345,
      "time": 142,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7299592098"
    },
    {
      "job": 78574470410,
      "time": 120,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7299798272"
    },
    {
      "job": 78574470327,
      "time": 234,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7299792802"
    },
    {
      "job": 78574470370,
      "time": 99,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7299781144"
    },
    {
      "job": 78574470344,
      "time": 185,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7299817895"
    },
    {
      "job": 78573984997,
      "time": 182,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299548221"
    },
    {
      "job": 78574470342,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299583213"
    },
    {
      "job": 78574470335,
      "time": 129,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7299588067"
    },
    {
      "job": 78574470347,
      "time": 117,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7299584297"
    },
    {
      "job": 78574470343,
      "time": 143,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7299592530"
    }
  ],
  "_buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/lorenc5/rvoterdistance",
  "_commit": {
    "id": "7627243b8eff87ece4245aff58832f3c65d318b7",
    "author": "Loren Collingwood <26538598+lorenc5@users.noreply.github.com>",
    "committer": "Loren Collingwood <26538598+lorenc5@users.noreply.github.com>",
    "message": "Apply styler formatting to new code\n\nCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>\n",
    "time": 1780077616
  },
  "_maintainer": {
    "name": "Loren Collingwood",
    "email": "lcollingwood@unm.edu"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "rdrobust",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "lorenc5",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-21",
      "n": 2
    },
    {
      "week": "2026-22",
      "n": 6
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "lorenc5",
      "count": 8,
      "uuid": 26538598
    }
  ],
  "_userbio": {
    "uuid": 26538598,
    "type": "user",
    "name": "Loren Collingwood",
    "description": "Associate Professor of Political Science at University of New Mexico. Research interests: American politics, race and ethnic politics, and methods."
  },
  "_downloads": {
    "count": 32,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/Rvoterdistance"
  },
  "_devurl": "https://github.com/lorenc5/rvoterdistance",
  "_searchresults": 13,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/Rvoterdistance.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/lorenc5/rvoterdistance",
  "_realowner": "lorenc5",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.1",
      "date": "2017-03-20"
    },
    {
      "version": "2.0.0",
      "date": "2026-05-27"
    }
  ],
  "_exports": [
    "dist_km",
    "dist_mile",
    "dist_to_boundary",
    "haversine",
    "nearest_location"
  ],
  "_datasets": [
    {
      "name": "dbox",
      "title": "King County ballot drop box locations",
      "object": "king_dbox",
      "class": [
        "data.frame"
      ],
      "fields": [
        "location_name",
        "address_city",
        "state",
        "lat",
        "long"
      ],
      "rows": 43,
      "table": true,
      "tojson": true
    },
    {
      "name": "early_meck",
      "title": "Mecklenburg County early voting locations",
      "object": "meck_ev",
      "class": [
        "data.frame"
      ],
      "fields": [
        "county",
        "office_addr",
        "long",
        "lat"
      ],
      "rows": 21,
      "table": true,
      "tojson": true
    },
    {
      "name": "king_geo",
      "title": "King County voter sample with geocoded addresses",
      "object": "king_dbox",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Residence_Addresses_Longitude",
        "Residence_Addresses_Latitude"
      ],
      "rows": 5000,
      "table": true,
      "tojson": true
    },
    {
      "name": "voter_meck",
      "title": "Mecklenburg County voter sample with geocoded addresses",
      "object": "meck_ev",
      "class": [
        "data.frame"
      ],
      "fields": [
        "county",
        "long",
        "lat"
      ],
      "rows": 4552,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dbox",
      "title": "King County ballot drop box locations",
      "topics": [
        "dbox"
      ]
    },
    {
      "page": "dist_km",
      "title": "Calculate minimum distance in kilometers",
      "topics": [
        "dist_km"
      ]
    },
    {
      "page": "dist_mile",
      "title": "Calculate minimum distance in miles",
      "topics": [
        "dist_mile"
      ]
    },
    {
      "page": "dist_to_boundary",
      "title": "Distance from voters to a geographic boundary",
      "topics": [
        "dist_to_boundary"
      ]
    },
    {
      "page": "early_meck",
      "title": "Mecklenburg County early voting locations",
      "topics": [
        "early_meck"
      ]
    },
    {
      "page": "haversine",
      "title": "Haversine distance between two points",
      "topics": [
        "haversine"
      ]
    },
    {
      "page": "king_geo",
      "title": "King County voter sample with geocoded addresses",
      "topics": [
        "king_geo"
      ]
    },
    {
      "page": "nearest_location",
      "title": "Find nearest polling locations for each voter",
      "topics": [
        "nearest_location"
      ]
    },
    {
      "page": "voter_meck",
      "title": "Mecklenburg County voter sample with geocoded addresses",
      "topics": [
        "voter_meck"
      ]
    }
  ],
  "_readme": "https://github.com/lorenc5/rvoterdistance/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to Rvoterdistance",
      "author": "Loren Collingwood",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Installation",
        "Included Data",
        "Basic Usage: Nearest Location",
        "k-Nearest Locations",
        "Distance Threshold",
        "Using sf Objects",
        "Convenience Functions",
        "Distance to a Geographic Boundary",
        "Simple boundary line",
        "Polygon boundary",
        "Using sf POINT voters",
        "Supported units",
        "Performance",
        "Application: Geographic Regression Discontinuity",
        "Step 1: Define the reservation boundary",
        "Step 2: Simulate 50,000 voters",
        "Step 3: Compute the score variable",
        "Step 4: Generate voter turnout",
        "Step 5: Histogram of the score variable",
        "Step 6: Map of voters and reservation",
        "Step 7: RD estimation with rdrobust",
        "Step 8: RD plot"
      ],
      "created": "2026-05-20 16:19:54",
      "modified": "2026-05-29 18:00:16",
      "commits": 4
    }
  ],
  "_score": 4.113943352306837,
  "_indexed": true,
  "_nocasepkg": "rvoterdistance",
  "_universes": [
    "lorenc5"
  ],
  "_previous": "2.0.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-29T19:44:06.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "6d5d741797fbcd908d533826c53bc2100d0015cb3bcc29101dbe5d7db6a3a84c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-29T19:44:16.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "9368efb22e8a7af7b98afec1c0a3db8b639c6e05bb53561ed5c4a20bd3e08e0e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-29T19:44:00.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "f4a570954640c4767cdf838139d45814a349a5a3e88214f473e3ebc7a80346b4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.0",
      "date": "2026-05-29T19:44:16.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "0a30bb655f50c1f23a490bf6739316a74c89d36e201b30dfef24f2619ac6a36c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-29T19:55:35.000Z",
      "arch": "aarch64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "ef01d2f0004e5cedbadef6440f661b56489fe3c8373007dad98e1c248697700a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-29T19:55:05.000Z",
      "arch": "x86_64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "b38370bfbd0e2aab1807c1c4c50e3204d694c74cdf8211c0cffc293ee9343a28",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-29T19:54:49.000Z",
      "arch": "aarch64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "b5b87220f5f5e2bf53da817869b0a9edec59045aa2cbdeb2929f319e281e069e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.0",
      "date": "2026-05-29T19:56:31.000Z",
      "arch": "x86_64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "4e84e993777626fa6e34e5b4983c0e947fc88130c1346b6489f3936191e1853a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.0",
      "date": "2026-05-29T19:44:06.000Z",
      "arch": "emscripten",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "7e43b77b00cf3294a1240a9643e95517be5f16ecf981c5b7193e918a0a348bbe",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-29T19:43:35.000Z",
      "arch": "x86_64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "06fab00ed4edce5fb70a717ed279d6eb486c98289ec7a3b38687eaa25c90d622",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-29T19:43:26.000Z",
      "arch": "x86_64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "237bad8e25b0375abc3186170140725027191dbd7f6ac8b5eff30b9491ac23bc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.1.0",
      "date": "2026-05-29T19:43:44.000Z",
      "arch": "x86_64",
      "commit": "7627243b8eff87ece4245aff58832f3c65d318b7",
      "fileid": "5a48a24750eee101bf8d7c77491df537c6dc49ce7b941d52646fc6df31a0576b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/lorenc5/actions/runs/26658266194"
    }
  ]
}