Skip to content

viewscape

Viewscape Analysis

v2.0.2 · Dec 19, 2024 · GPL-3

Description

A collection of functions to make R a more effective viewscape analysis tool for calculating viewscape metrics based on computing the viewable area for given a point/multiple viewpoints and a digital elevation model.The method of calculating viewscape metrics implemented in this package are based on the work of Tabrizian et al. (2020) <doi:10.1016/j.landurbplan.2019.103704>. The algorithm of computing viewshed is based on the work of Franklin & Ray. (1994) <https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=555780f6f5d7e537eb1edb28862c86d1519af2be>.

Downloads

273

Last 30 days

15526th

730

Last 90 days

2.2K

Last year

Trend: 0% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 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-macos-arm64 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 27, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 20, 2026
ERROR r-devel-windows-x86_64

examples

Running examples in 'viewscape-Ex.R' failed
The error most likely occurred in:

> ### Name: fov_mask
> ### Title: fov_mask
> ### Aliases: fov_mask
> 
> ### ** Examples
> 
> # Load a viewpoint
> test_viewpoint <- sf::read_sf(system.file("test_viewpoin
...[truncated]...
tem.file("test_dsm.tif", package ="viewscape"))
> # Compute viewshed
> viewshed <- viewscape::compute_viewshed(dsm,
+                                         viewpoints = test_viewpoint,
+                                         offset_viewpoint = 6)
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies Rcpp rlang dplyr sf sp terra ForestTools (>= 1.0.1) pbmcapply viewscape

Version History

new 2.0.2 Mar 10, 2026
updated 2.0.2 ← 2.0.1 diff Dec 18, 2024
updated 2.0.1 ← 2.0.0 diff Nov 10, 2024
updated 2.0.0 ← 1.0.0 diff Nov 8, 2024
new 1.0.0 Feb 3, 2024