Skip to content

glmbayesCore

0.5.4Package record

Core C++ Sampling Engine for 'glmbayes'

0packages depend
790downloads / year
2.4%test coverage
13/13flavors OK

Overview

About

Core C++ engine for 'glmbayes': envelope-based iid linear and generalized linear model samplers, prior-family routing, and optional 'OpenCL' acceleration. Sampling for supported non-conjugate models uses accept-reject methods based on likelihood subgradients as in Nygren and Nygren (2006) doi:10.1198/016214506000000357. Intended as a developer backend for the 'glmbayes' formula interface; end users should use 'glmbayes' for modelling with interfaces analogous to 'lm' and 'glm'. Mixed-model engines are planned for a future release.

Changes in 0.5.4

Bug fixes

  • **residuals.rglmb() / residuals.rlmb() / residuals.summary.rglmb():** Fixed the ysim argument to substitute for the **observed response** y (fitted value held fixed at each draw), not the reverse. The previous behavior substituted ysim for the fitted value while holding y fixed, which does not correspond to a standard posterior-predictive residual check and contradicted this function's own ysim ("simulated responses") documentation. The corrected convention matches **glmbayes**'s residuals.glmb() (simulate new response data, recompute residuals against the same fitted values, and compare to the actual residuals for outlier diagnostics) — the two packages' ysim semantics were inconsistent since this function was added post-split; they are now aligned. Behavior for the default case (ysim = NULL) is unchanged.
Show all changes in 0.5.4Hide the rest of the changes in 0.5.4
  • **Configure (Linux/macOS):** -DUSE_OPENCL is set only when a **non-PoCL** OpenCL platform exposes at least one **GPU** device (same policy as **glmbayes** 0.9.75). PoCL-only ICD stacks (typical on CRAN debian-gcc incoming) no longer enable OpenCL at compile time, so kernel builds do not touch ~/.cache/pocl (avoids incoming NOTE on tempfile_* there). Real GPU installs (NVIDIA/AMD/Intel) are unchanged. configure.win is unaffected (Windows never ran a runtime OpenCL probe).
  • **Configure policy:** Removed tools/rcpp_include.R / tools/patch_rcpp_function_h.R and the glmbayes_getRegisteredNamespace compatibility shim (src/glmbayes_getRegisteredNamespace.{cpp,h}) from configure and configure.win. Builds now rely on standard **LinkingTo: Rcpp** and the CRAN **Rcpp (>= 1.1.1)** requirement instead of probing/patching Rcpp/Function.h or recommending a GitHub install of Rcpp (same policy fix as **glmbayes** 0.9.73/0.9.75).
  • **CI:** Replaced .github/workflows/rhub.yaml with the current **glmbayes** version, removing dead matrix/report logic that referenced the now-removed tools/patch_rcpp_function_h.R script.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 11.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OKNow
  • OK8 OK2026-08-06
Advisories

none known

Documentation

In release 0.5.4
READMEYes · 1,541 wordsVignettesNoNEWSYes · 100% structured · mentions 0.5.4Citation fileYes · cites a publication
Help pages
38includes a package overview page
Examples that run
100%30 run in a plain check
Exported functions with examples
85%
Documented parameters
98%
Return-value docs
100%
Help pages citing references
61% with a bibliography file

Also includes 3 demo scripts (run with demo())

Downloads

790
CRAN downloads in the past year
Rank #15,336 · ~2/day · ~66/mo
Daily download trend is not available in this view yet.
31630 days
79090 days
7901 year
Compare downloads with other packages →
Also on43 r2u2 autocran

Repository

3Stars
0Forks
1Open issues
0Open PRs
0Releases
1,253Commits
7Commit identities
1,253 commits · Last activity 2026-10-03 · 0% stars, 30d · Default branch at 0.6.0, ahead of CRAN 0.5.4 (checked 2026-10-18)
Responsiveness
not measured

Stars over time

2026-08-05 · 22026-09-10 · 3
PracticesBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/knygren/glmbayescore on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Cursorfirst seen 2026-04-18
    Seen in the repository: .cursor
    Named in .Rbuildignore: .cursor
    Commits: at least 3 crediting it in the message
  • Claude Codefirst seen 2026-04-24
    Named in .Rbuildignore: .claude
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

Installing glmbayesCore adds 8 packages (7 with compiled code, 9.8 MB of source tarballs). Heaviest: nmathopencl 2.2 MB, Rcpp 1.8 MB, opencltools 1.6 MB.

Depends (2)
R >= 3.5.0MASS
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (9)
Author, Maintainer since 0.5.3 (2026)
Contributor, Copyright holder
R Mathlib sources, R stats modeling code, and derived/adapted routines
Contributor
Original R glm implementation
Contributor, Copyright holder
Portions of R Mathlib
Contributor, Copyright holder
R Mathlib and original R modeling infrastructure
Contributor
Portions of R Mathlib
Contributor, Copyright holder
Portions of R Mathlib
Copyright holder
OpenCL API headers in inst/include/CL (Apache License 2.0)
Copyright holder
Portions of R Mathlib and R source code
Releases (2)

Pick two releases to compare their code metrics.

  • 0.5.4Latest
    record
    2026-09-26 · current release · diff ↗
  • 0.5.3
    record
    first seen 2026-08-05
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First seen
2026-08-05
Total releases
2 / 1 yrs
License
GPL-2 OSI
Copyright
see file COPYRIGHTS
Minimum R
≥ 3.5.0
Bundled data
127 KB / 6 files
Download size
1.6 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("glmbayesCore")

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 glmbayesCore version 0.5.4 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, 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