Package: roads 1.2.1


Josie Hughes
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.
Authors:
roads_1.2.1.tar.gz
roads_1.2.1.zip(r-4.7)roads_1.2.1.zip(r-4.6)roads_1.2.1.zip(r-4.5)
roads_1.2.1.tgz(r-4.6-any)roads_1.2.1.tgz(r-4.5-any)
roads_1.2.1.tar.gz(r-4.7-any)roads_1.2.1.tar.gz(r-4.6-any)
roads_1.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
roads/json (API)
NEWS
| # Install 'roads' in R: |
| install.packages('roads', repos = c('https://landscitech.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/landscitech/roads/issues
Pkgdown/docs site:https://landscitech.github.io
- CLUSexample - Data from the CLUS example
- dem_example - Grade penalty example data
- demoScen - Demonstration set of 10 input scenarios
Last updated from:7fb87c74b0. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 263 | ||
| source / vignettes | OK | 268 | ||
| linux-release-x86_64 | OK | 252 | ||
| macos-release-arm64 | OK | 193 | ||
| macos-oldrel-arm64 | OK | 279 | ||
| windows-devel | OK | 220 | ||
| windows-release | OK | 216 | ||
| windows-oldrel | OK | 225 | ||
| wasm-release | OK | 147 |
Exports:getDistFromSourcegetLandingsFromTargetgradePenaltyFnplotRoadsprepExDataprojectRoadsrasterizeLinerasterToLineSegmentssimpleCostFn
Dependencies:classclassIntclicpp11data.tableDBIdplyre1071genericsglueigraphKernSmoothlatticelifecyclemagrittrMASSMatrixpillarpkgconfigproxyR6Rcpprlangs2sfterratibbletidyselectunitsutf8vctrswithrwk
Reconstruct road development history
Rendered fromReconstructRoadHistory.Rmdusingknitr::rmarkdownon May 16 2026.Last update: 2024-03-26
Started: 2022-10-31
roads Package
Rendered fromroads-vignette.Rmdusingknitr::rmarkdownon May 16 2026.Last update: 2026-01-16
Started: 2021-11-09
Using the grade penalty function
Rendered fromgrade-penalty.Rmdusingknitr::rmarkdownon May 16 2026.Last update: 2024-06-26
Started: 2024-05-16
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Data from the CLUS example | CLUSexample |
| Grade penalty example data | dem_example |
| Demonstration set of 10 input scenarios | demoScen |
| Get landing target points within harvest blocks | getLandingsFromTarget |
| Grade penalty edge weight function | gradePenaltyFn |
| Plot projected roads | plotRoads |
| Prepare example data | prepExData |
| Project road network | projectRoads projectRoads,ANY,ANY,ANY,ANY,ANY,ANY,ANY,ANY,list-method projectRoads,ANY,ANY,ANY,ANY,ANY,ANY,ANY,ANY,missing-method |
| Convert raster to lines | rasterToLineSegments |
| Simple cost edge weight function | simpleCostFn |