CRAN Package Check Results for Package viewscape

Last updated on 2025-12-11 07:49:56 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.0.2 46.85 256.57 303.42 OK
r-devel-linux-x86_64-debian-gcc 2.0.2 28.54 161.00 189.54 OK
r-devel-linux-x86_64-fedora-clang 2.0.2 98.00 404.45 502.45 OK
r-devel-linux-x86_64-fedora-gcc 2.0.2 112.00 380.58 492.58 OK
r-devel-windows-x86_64 2.0.2 53.00 234.00 287.00 OK
r-patched-linux-x86_64 2.0.2 42.75 244.04 286.79 OK
r-release-linux-x86_64 2.0.2 45.54 244.94 290.48 OK
r-release-macos-arm64 2.0.2 OK
r-release-macos-x86_64 2.0.2 29.00 223.00 252.00 OK
r-release-windows-x86_64 2.0.2 54.00 235.00 289.00 OK
r-oldrel-macos-arm64 2.0.2 OK
r-oldrel-macos-x86_64 2.0.2 27.00 181.00 208.00 OK
r-oldrel-windows-x86_64 2.0.2 66.00 309.00 375.00 ERROR

Check Details

Version: 2.0.2
Check: examples
Result: ERROR Running examples in 'viewscape-Ex.R' failed The error most likely occurred in: > ### Name: calculate_feature > ### Title: calculate_feature > ### Aliases: calculate_feature > > ### ** Examples > > library(viewscape) > # Load a viewpoint > test_viewpoint <- sf::read_sf(system.file("test_viewpoint.shp", package = "viewscape")) > # load dsm raster > dsm <- terra::rast(system.file("test_dsm.tif", package ="viewscape")) > #Compute viewshed > viewshed <- viewscape::compute_viewshed(dsm = dsm, + viewpoints = test_viewpoint, + offset_viewpoint = 6) > # load canopy raster > test_canopy <- terra::rast(system.file("test_canopy.tif", + package ="viewscape")) > # calculate the percentage of canopy coverage > test_canopy_proportion <- viewscape::calculate_feature(viewshed = viewshed, + feature = test_canopy, + type = 2, + exclude_value = 0) Warning: Cannot find coordinate operations from `{ "$schema": "https://proj.org/schemas/v0.7/projjson.schema.json", "type": "EngineeringCRS", "name": "NAD83 / Michigan South (ft)", "datum": { "name": "Unknown engineering datum" }, "coordinate_system": { "subtype": "Cartesian", "axis": [ { "name": "Easting", "abbreviation": "E", "direction": "east", "unit": "metre" }, { "name": "Northing", "abbreviation": "N", "direction": "north", "unit": "metre" } ] } }' to `{ "$schema": "https://proj.org/schemas/v0.7/projjson.schema.json", "type": "ProjectedCRS", "name": "unknown", "base_crs": { "name": "unknown", "datum": { "type": "GeodeticReferenceFrame", "name": "North American Datum 1983", "ellipsoid": { "name": "GRS 1980", "semi_major_axis": 6378137, "inverse_flattening": 298.257222101 }, "id": { "authority": " [... truncated] Error: [project] cannot get output boundaries for the target crs Execution halted Flavor: r-oldrel-windows-x86_64

Version: 2.0.2
Check: tests
Result: ERROR Running 'testthat.R' [28s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(viewscape) > > testthat::test_check("viewscape") Saving _problems/test-calculate_feature-25.R Saving _problems/test-calculate_viewmetrics-32.R [ FAIL 2 | WARN 3 | SKIP 0 | PASS 5 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-calculate_feature.R:22:3'): runs correctly ───────────────────── Error: [project] cannot get output boundaries for the target crs Backtrace: ▆ 1. └─viewscape::calculate_feature(...) at test-calculate_feature.R:22:3 2. ├─terra::project(feature, y = terra::crs(viewshed@crs)) 3. └─terra::project(feature, y = terra::crs(viewshed@crs)) 4. └─terra (local) .local(x, ...) 5. └─terra:::messages(x, "project") 6. └─terra:::error(f, x@pntr$getError()) ── Error ('test-calculate_viewmetrics.R:29:3'): runs correctly ───────────────── Error: [project] cannot get output boundaries for the target crs Backtrace: ▆ 1. └─viewscape::calculate_viewmetrics(...) at test-calculate_viewmetrics.R:29:3 2. ├─terra::project(dtm, y = terra::crs(viewshed@crs)) 3. └─terra::project(dtm, y = terra::crs(viewshed@crs)) 4. └─terra (local) .local(x, ...) 5. └─terra:::messages(x, "project") 6. └─terra:::error(f, x@pntr$getError()) [ FAIL 2 | WARN 3 | SKIP 0 | PASS 5 ] Error: ! Test failures. Execution halted Flavor: r-oldrel-windows-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.