Skip to content

distanceto

Calculate Distance to Features

v0.0.3 · Jun 1, 2023 · GPL (>= 3)

Description

Calculates distances from point locations to features. The usual approach for eg. resource selection function analyses is to generate a complete distance to features surface then sample it with your observed and random points. Since these raster based approaches can be pretty costly with large areas, and often lead to memory issues in R, the distanceto package opts to compute these distances using efficient, vector based approaches. As a helper, there's a decidedly low-res raster based approach for visually inspecting your region's distance surface. But the workhorse is distance_to.

Downloads

CRAN

284

Last 30 days

14390th

698

Last 90 days

2.9K

Last year

Trend: +61.4% (30d vs prior 30d)

r2u CRAN

1

Last 30 days

25

Last 90 days

98

Last year

Trend: -90% (30d vs prior 30d)

autoCRAN

1

Last 7 days

8

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies sf nabor geodist distanceto

Version History

3 tracked
new 0.0.3 Mar 10, 2026
updated 0.0.3 ← 0.0.2 diff May 31, 2023
new 0.0.2 Nov 10, 2021