Skip to content

sfcurve

2x2, 3x3 and Nxn Space-Filling Curves

v1.0.1 · Apr 10, 2026 · MIT + file LICENSE

Description

Implementation of all possible forms of 2x2 and 3x3 space-filling curves, i.e., the generalized forms of the Hilbert curve <https://en.wikipedia.org/wiki/Hilbert_curve>, the Peano curve <https://en.wikipedia.org/wiki/Peano_curve> and the Peano curve in the meander type (Figure 5 in <https://eudml.org/doc/141086>). It can generates nxn curves expanded from any specific level-1 units. It also implements the H-curve and the three-dimensional Hilbert curve. See <doi:10.48550/arXiv.2412.16962> for more details.

Downloads

CRAN

533

Last 30 days

7230th

1.5K

Last 90 days

3K

Last year

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

r2u CRAN

24

Last 30 days

122

Last 90 days

402

Last year

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

autoCRAN

2

Last 7 days

8

Last 30 days

0

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 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/sfcurve.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 16, 2026
NOTE 3 OK · 11 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘h_curve.Rd’ ‘sfc_4x4_meander.Rd’ ‘sfc_generator.Rd’
    ‘spacefilling.Rd’
NOTE r-devel-linux-x86_64-debian-gcc

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘h_curve.Rd’ ‘sfc_4x4_meander.Rd’ ‘sfc_generator.Rd’
    ‘spacefilling.Rd’
NOTE r-devel-linux-x86_64-fedora-clang

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘h_curve.Rd’ ‘sfc_4x4_meander.Rd’ ‘sfc_generator.Rd’
    ‘spacefilling.Rd’
NOTE r-devel-linux-x86_64-fedora-gcc

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘h_curve.Rd’ ‘sfc_4x4_meander.Rd’ ‘sfc_generator.Rd’
    ‘spacefilling.Rd’
NOTE r-devel-macos-arm64

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘h_curve.Rd’ ‘sfc_4x4_meander.Rd’ ‘sfc_generator.Rd’
    ‘spacefilling.Rd’
NOTE r-devel-windows-x86_64

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    'h_curve.Rd' 'sfc_4x4_meander.Rd' 'sfc_generator.Rd'
    'spacefilling.Rd'
NOTE r-patched-linux-x86_64

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘h_curve.Rd’ ‘sfc_4x4_meander.Rd’ ‘sfc_generator.Rd’
    ‘spacefilling.Rd’
NOTE r-release-linux-x86_64

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘h_curve.Rd’ ‘sfc_4x4_meander.Rd’ ‘sfc_generator.Rd’
    ‘spacefilling.Rd’
NOTE r-release-macos-arm64

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘h_curve.Rd’ ‘sfc_4x4_meander.Rd’ ‘sfc_generator.Rd’
    ‘spacefilling.Rd’
NOTE r-release-macos-x86_64

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘h_curve.Rd’ ‘sfc_4x4_meander.Rd’ ‘sfc_generator.Rd’
    ‘spacefilling.Rd’
NOTE r-release-windows-x86_64

DESCRIPTION meta-information

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    'h_curve.Rd' 'sfc_4x4_meander.Rd' 'sfc_generator.Rd'
    'spacefilling.Rd'

Code

Structure

Lines of code

9,751

Files

85

Compiled share

14.3%

Has compiled src

Yes

Language breakdown

R 5,831 (59.8%)C/C++/src 1,390 (14.3%)Tests 494 (5.1%)Docs 2,024 (20.8%)Vignettes 12 (0.1%)

API

Exported functions

56

Internal functions

62

Recent export changes

v1.0.0+56 BASE_B, BASE_C, BASE_D +53 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.08

testthat edition

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

100%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2024-09-13

Latest release

2026-04-10

Avg cadence

574 days

Cold removal rate

Dep drift

0

LOC over versions

v1.0.0: 9,756 LOCv1.0.1: 9,751 LOC

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

Dependency Network

Dependencies Reverse dependencies Rcpp colorRamp2 sfcurve

Version History

2 tracked
updated 1.0.1 ← 1.0.0 diff Apr 10, 2026
new 1.0.0 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Sep 13, 2024. Releases before tracking aren’t shown.