Skip to content

hhdynamics

Fitting Household Transmission Model to Estimate Household Transmission Dynamics of Influenza

v1.3.3 · Apr 8, 2026 · GPL (>= 2)

Description

A Bayesian household transmission model to estimate household transmission dynamics, with accounting for infection from community and tertiary cases.

Downloads

CRAN

447

Last 30 days

9488th

1.4K

Last 90 days

1.7K

Last year

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

r2u CRAN

24

Last 30 days

121

Last 90 days

135

Last year

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

autoCRAN

8

Last 7 days

25

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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 12 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/hhdynamics.Rcheck/00install.out' for details.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 7, 2026
ERROR r-devel-linux-x86_64-fedora-gcc

tests

Running ‘testthat.R’ [91s/61s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(hhdynamics)
  > 
  > test_check("hhdynamics")
  The running time is 4 seconds
  The running time is 2 seconds
  The runn
...[truncated]...
UE/FALSE needed
  Backtrace:
      ▆
   1. └─hhdynamics::table_parameters(.fit_nocov) at test-table.R:14:3
   2.   └─hhdynamics:::.effective_sample_size(x_raw)
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 91 ]
  Error:
  ! Test failures.
  Execution halted
OK 7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 27, 2026

Line coverage

Expression

Tests / Examples

Functions

52 12 exported

Complexity

6.2 avg / 46 max

Call network

52 nodes / 32 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Compare versions

Code

Structure

Lines of code

5,058

Files

70

Compiled share

23%

Has compiled src

Yes

Language breakdown

R 1,864 (36.9%)C/C++/src 1,165 (23%)Tests 530 (10.5%)Docs 948 (18.7%)Vignettes 551 (10.9%)

API

Exported functions

12

Internal functions

19

Recent export changes

v1.3.2+12 create_wide_data, household_dynamics, plot_attack_rate +9 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.28

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

81%

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

50%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

1

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2026-03-26

Latest release

2026-04-08

Avg cadence

13 days

Cold removal rate

Dep drift

0

LOC over versions

v1.3.2: 5,057 LOCv1.3.3: 5,058 LOC

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

Dependency Network

Dependencies Reverse dependencies Rcpp RcppParallel hhdynamics

Version History

2 tracked
updated 1.3.3 ← 1.3.2 diff Apr 8, 2026
new 1.3.2 Mar 26, 2026