Skip to content

osbng

Geospatial Grid Indexing with the British National Grid

v0.2.0 · Jul 5, 2025 · MIT + file LICENSE

Description

Offers a streamlined programmatic interface to Ordnance Survey's British National Grid (BNG) index system, enabling efficient spatial indexing and analysis based on grid references. It supports a range of geospatial applications, including statistical aggregation, data visualisation, and interoperability across datasets. Designed for developers and analysts working with geospatial data in Great Britain, 'osbng' simplifies integration with geospatial workflows and provides intuitive tools for exploring the structure and logic of the BNG system.

Downloads

CRAN

226

Last 30 days

21820th

540

Last 90 days

2K

Last year

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

r2u CRAN

0

Last 30 days

39

Last 90 days

168

Last year

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

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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

9,302

Files

91

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,538 (27.3%)Tests 4,808 (51.7%)Docs 1,078 (11.6%)Vignettes 878 (9.4%)

API

Exported functions

30

Internal functions

48

Recent export changes

v0.2.0+30 as_bng_reference, bbox_to_bng, bng_distance +27 more

Testing & CI

Has tests

Yes

Test-to-code ratio

1.89

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

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

1

First release

2025-07-05

Latest release

2025-07-05

Avg cadence

Cold removal rate

Dep drift

0

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

Dependency Network

Dependencies Reverse dependencies geos osbng

Version History

1 tracked
new 0.2.0 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Jul 5, 2025. Releases before tracking aren’t shown.