Skip to content

lacunr

Fast 3D Lacunarity for Voxel Data

v1.0.2 · Aug 27, 2025 · GPL (>= 3)

Description

Calculates 3D lacunarity from voxel data. It is designed for use with point clouds generated from Light Detection And Ranging (LiDAR) scans in order to measure the spatial heterogeneity of 3-dimensional structures such as forest stands. It provides fast 'C++' functions to efficiently bin point cloud data into voxels and calculate lacunarity using different variants of the gliding-box algorithm originated by Allain & Cloitre (1991) <doi:10.1103/PhysRevA.44.3552>.

Downloads

CRAN

247

Last 30 days

20089th

556

Last 90 days

2.6K

Last year

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

r2u CRAN

24

Last 30 days

115

Last 90 days

419

Last year

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

autoCRAN

4

Last 7 days

22

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

6 NOTE
7 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
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 NOTE
r-release-linux-x86_64 NOTE
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (6 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

Rd cross-references

Unknown package ‘lidR’ in Rd xrefs
NOTE r-devel-linux-x86_64-debian-gcc

Rd cross-references

Unknown package ‘lidR’ in Rd xrefs
NOTE r-devel-linux-x86_64-fedora-clang

Rd cross-references

Unknown package ‘lidR’ in Rd xrefs
NOTE r-devel-linux-x86_64-fedora-gcc

Rd cross-references

Unknown package ‘lidR’ in Rd xrefs
NOTE r-patched-linux-x86_64

Rd cross-references

Unknown package ‘lidR’ in Rd xrefs
NOTE r-release-linux-x86_64

Rd cross-references

Unknown package ‘lidR’ in Rd xrefs

Check History

NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 10, 2026
NOTE r-devel-linux-x86_64-fedora-clang

Rd cross-references

Unknown package ‘lidR’ in Rd xrefs
NOTE r-devel-linux-x86_64-fedora-gcc

Rd cross-references

Unknown package ‘lidR’ in Rd xrefs
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running massageExamples to create ‘lacunr-Ex.R’ failed
Error in file(out, "wt") : cannot open the connection
Calls: <Anonymous> -> Rd2ex -> file
In addition: Warning message:
In file(out, "wt") :
  cannot open file '/tmp/Rtmp7mcKn5/file23faa3946e5fc/lacunarity.R': No space left on device
Execution halted
 NONE
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/lacunr.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

3,001

Files

50

Compiled share

11.9%

Has compiled src

Yes

Language breakdown

R 856 (28.5%)C/C++/src 356 (11.9%)Tests 231 (7.7%)Docs 355 (11.8%)Vignettes 1,203 (40.1%)

API

Exported functions

7

Internal functions

9

Recent export changes

v1.0.1+7 bounding_box, hr_plot, lac_plot +4 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.27

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

20%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

2.10

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2024-06-04

Latest release

2025-08-27

Avg cadence

449 days

Cold removal rate

Dep drift

0

LOC over versions

v1.0.1: 2,996 LOCv1.0.2: 3,001 LOC

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

Dependency Network

Dependencies Reverse dependencies Rcpp data.table abind ggplot2 rlang lacunr

Version History

3 tracked
new 1.0.2 Mar 10, 2026
updated 1.0.2 ← 1.0.1 diff Aug 27, 2025
new 1.0.1 Jun 3, 2024