Skip to content

sphunif

1.4.4Package record

Uniformity Tests on the Circle, Sphere, and Hypersphere

2packages dependsuggested by 1
4.1Kdownloads / year
88.4%test coverage
13/13flavors OK

Overview

About

Implementation of uniformity tests on the circle and (hyper)sphere. The main function of the package is unif_test(), which conveniently collects more than 35 tests for assessing uniformity on S^{p-1} = {x in R^p : ||x|| = 1}, p >= 2. The test statistics are implemented in the unif_stat() function, which allows computing several statistics for different samples within a single call, thus facilitating Monte Carlo experiments. Furthermore, the unif_stat_MC() function allows parallelizing them in a simple way. The asymptotic null distributions of the statistics are available through the function unif_stat_distr(). The core of 'sphunif' is coded in C++ by relying on the 'Rcpp' package. The package also provides several novel datasets and gives the replicability for the data applications/simulations in García-Portugués et al. (2021) doi:10.1007/978-3-030-69944-4_12, García-Portugués et al. (2023) doi:10.3150/21-BEJ1454, Fernández-de-Marcos and García-Portugués (2024) doi:10.1016/j.spl.2024.110218, and García-Portugués et al. (2025) doi:10.1080/01621459.2025.2566414.

Changes in 1.4.4
  • Add cmb dataset

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 13.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE12 OK, 2 NOTE2026-04-22
  • ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.4.4
README· In the repository, left out of the releaseVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 1.4.4Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
43 (6 internal)includes a package overview page
Examples that run
100%35 run in a plain check
Exported functions with examples
97%
Documented parameters
91%
Return-value docs
100%
Help pages citing references
42%

Downloads

4.1K
CRAN downloads in the past year
Rank #6,701 · ~11/day · ~345/mo
Daily download trend is not available in this view yet.
50630 days
1.3K90 days
4.1K1 year
Compare downloads with other packages →
Also on419 r2u4 autocran

Repository

11Stars
1Forks
0Open issues
3Open PRs
4Releases
79Commits
1Commit identities
rcircular-statisticsdirectional-statisticsuniformityuniformity-tests
License file reads as GPL-3.0 · 79 commits · Last activity 2026-06-24 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-08-02 · 92026-07-07 · 11
PracticesBeta

9 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/egarpor/sphunif on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (1)
README.Rmd
Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 3 practices
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

Installing sphunif adds 15 packages (6 with compiled code, 7.1 MB of source tarballs). Heaviest: rotasym 2.4 MB, Rcpp 1.8 MB, RcppArmadillo 1.0 MB.

Depends (2)
R >= 3.5.0Rcpp
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (4)
Author, Maintainer since 1.0.1 (2021)
Contributor · added in 1.4.0
Contributor
Releases (8)

Pick two releases to compare their code metrics.

  • 1.4.4Latest
    record
    2026-06-03 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.4.3
    record
    2025-11-09 · diff ↗
  • 1.4.2
    record
    2025-08-18 · diff ↗
  • 1.4.1
    record
    2025-07-27 · diff ↗ ·
    added 6 exports
    H_ab, d_cir_stat_Stein, d_sph_stat_Stein, p_cir_stat_Stein, p_sph_stat_Stein, rot_ab
  • R
    R 4.5.0 released · 2025-04-11
  • 1.4.0
    record
    2024-05-24 · diff ↗ ·
    added 17 exports
    c_unif_cap, d_cir_stat_Poisson, d_cir_stat_Softmax, d_proj_unif_cap, d_sph_stat_Poisson, d_sph_stat_Softmax, d_sph_stat_Stereo, d_unif_cap, p_cir_stat_Poisson, p_cir_stat_Softmax, p_proj_unif_cap, p_sph_stat_Poisson, p_sph_stat_Softmax, p_sph_stat_Stereo, q_proj_unif_cap, r_proj_unif_cap, r_unif_cap
  • R
    R 4.4.0 released · 2024-04-24
  • 1.3.0
    record
    2023-12-04 · diff ↗ ·
    added 11 exports
    cir_stat_Poisson, cir_stat_Sobolev, cir_stat_Softmax, d_cir_stat_Sobolev, d_sph_stat_Sobolev, p_cir_stat_Sobolev, p_sph_stat_Sobolev, sph_stat_Poisson, sph_stat_Sobolev, sph_stat_Softmax, sph_stat_Stereo
  • 1.1.0
    record
    2023-08-21 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.1
    record
    2021-09-02
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2021-09-02
Total releases
8 / 5 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
482 KB / 6 files
Download size
793 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("sphunif")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for sphunif version 1.4.4 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy