roads: Road Network Projection

Iterative least cost path and minimum spanning tree methods for projecting forest road networks. The methods connect a set of target points to an existing road network using 'igraph' <https://igraph.org> to identify least cost routes. The cost of constructing a road segment between adjacent pixels is determined by a user supplied weight raster and a weight function; options include the average of adjacent weight raster values, and a function of the elevation differences between adjacent cells that penalizes steep grades. These road network projection methods are intended for integration into R workflows and modelling frameworks used for forecasting forest change, and can be applied over multiple time-steps without rebuilding a graph at each time-step.

Package details

AuthorSarah Endicott [aut] (ORCID: <https://orcid.org/0000-0001-9644-5343>), Kyle Lochhead [aut], Josie Hughes [aut, cre], Patrick Kirby [aut], Her Majesty the Queen in Right of Canada as represented by the Minister of the Environment [cph] (Copyright holder for included functions buildSimList, getLandingsFromTarget, pathsToLines, plotRoads, projectRoads, rasterizeLine, rasterToLineSegments), Province of British Columbia [cph] (Copyright holder for included functions getGraph, lcpList, mstList, shortestPaths, getClosestRoad, buildSnapRoads)
MaintainerJosie Hughes <josie.hughes@ec.gc.ca>
LicenseApache License (>= 2)
Version1.2.1
URL https://github.com/LandSciTech/roads https://landscitech.github.io/roads/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("roads")

Try the roads package in your browser

Any scripts or data that you put into this service are public.

roads documentation built on Jan. 16, 2026, 5:18 p.m.