Skip to content

bespatial

Boltzmann Entropy for Spatial Data

v0.1.3 · Apr 2, 2025 · MIT + file LICENSE

Description

Calculates several entropy metrics for spatial data inspired by Boltzmann's entropy formula. It includes metrics introduced by Cushman for landscape mosaics (Cushman (2015) <doi:10.1007/s10980-015-0305-2>), and landscape gradients and point patterns (Cushman (2021) <doi:10.3390/e23121616>); by Zhao and Zhang for landscape mosaics (Zhao and Zhang (2019) <doi:10.1007/s10980-019-00876-x>); and by Gao et al. for landscape gradients (Gao et al. (2018) <doi:10.1111/tgis.12315>; Gao and Li (2019) <doi:10.1007/s10980-019-00854-3>).

Downloads

CRAN

280

Last 30 days

16390th

741

Last 90 days

2.7K

Last year

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

r2u CRAN

25

Last 30 days

120

Last 90 days

456

Last year

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

autoCRAN

4

Last 7 days

30

Last 30 days

1

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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
NOTE 11 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE r-release-macos-x86_64

compiled code

File ‘bespatial/libs/bespatial.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/bespatial.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 16, 2026
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 27, 2026
NOTE r-devel-linux-x86_64-debian-gcc

compiled code

File ‘bespatial/libs/bespatial.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

904

Files

77

Compiled share

10.4%

Has compiled src

Yes

Language breakdown

R 379 (41.9%)C/C++/src 94 (10.4%)Tests 109 (12.1%)Docs 322 (35.6%)

API

Exported functions

5

Internal functions

15

Recent export changes

v0.1.2+5 bes_g_cushman, bes_g_gao, bes_m_cushman +2 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.29

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

40%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

16.7%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.1

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2024-06-07

Latest release

2025-04-02

Avg cadence

299 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1.2: 904 LOCv0.1.3: 904 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies belg comat Rcpp terra tibble landscapemetrics bespatial

Version History

3 tracked
new 0.1.3 Mar 10, 2026
updated 0.1.3 ← 0.1.2 diff Apr 1, 2025
new 0.1.2 Jun 6, 2024