Skip to content

cubature

Adaptive Multivariate Integration over Hypercubes

v2.1.4-1 · Nov 21, 2025 · GPL-3

Description

R wrappers around the cubature C library of Steven G. Johnson for adaptive multivariate integration over hypercubes and the Cuba C library of Thomas Hahn for deterministic and Monte Carlo integration. Scalar and vector interfaces for cubature and Cuba routines are provided; the vector interfaces are highly recommended as demonstrated in the package vignette.

Downloads

CRAN

20.4K

Last 30 days

800th

70.8K

Last 90 days

306K

Last year

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

r2u CRAN

342

Last 30 days

1.1K

Last 90 days

6.5K

Last year

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

autoCRAN

28

Last 7 days

158

Last 30 days

6

All-time

⚠ Shared name: this package is also shipped elsewhere on openSUSE, so this count is not exclusive to autoCRAN (it is an upper bound).

conda-forge CRAN

484

Last 30 days

1.6K

Last 90 days

9.4K

Last year

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

c2d4u legacy CRAN

6

Last 30 days

24

Last 90 days

87

Last year

Trend: -25% (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 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/cubature.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

235 7 exported

Complexity

5.1 avg / 17 max

Call network

235 nodes / 277 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

213,392

Files

145

Compiled share

98.2%

Has compiled src

Yes

Language breakdown

R 1,399 (0.7%)C/C++/src 209,476 (98.2%)Tests 670 (0.3%)Docs 1,292 (0.6%)Vignettes 555 (0.3%)

API

Exported functions

9

Internal functions

6

Testing & CI

Has tests

Yes

Test-to-code ratio

0.48

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

14.3%

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

System requirements

2

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

26

First release

2009-12-17

Latest release

2025-11-22

Avg cadence

150 days

Cold removal rate

100%

Dep drift

1

LOC over versions

v1.0: 1,718 LOCv1.1: 2,004 LOCv1.1-1: 2,018 LOCv1.1-2: 2,028 LOCv1.3-6: 200,814 LOCv1.3-8: 200,827 LOCv1.3-11: 200,702 LOCv1.3-13: 200,830 LOCv1.4: 200,840 LOCv1.4-1: 200,813 LOCv2.0: 215,622 LOCv2.0.1: 215,622 LOCv2.0.2: 215,837 LOCv2.0.3: 215,839 LOCv2.0.4: 216,233 LOCv2.0.4.1: 214,774 LOCv2.0.4.2: 214,915 LOCv2.0.4.4: 214,918 LOCv2.0.4.5: 214,798 LOCv2.0.4.6: 214,792 LOCv2.1.0: 213,250 LOCv2.1.1: 213,252 LOCv2.1.2: 213,393 LOCv2.1.3: 213,395 LOCv2.1.4: 213,395 LOCv2.1.4-1: 213,392 LOC

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

Reverse Dependencies (88)

linking_to

Dependency Network

Dependencies Reverse dependencies Rcpp PCMRS SphericalCubature cold fbst freqpcr optimStrat yuima BNSP CensRegSMSN CompClassMetrics FactorCopulaModel ForLion GB2 GPCMlasso GenOrd +73 more reverse deps cubature

Version History

27 tracked
new 2.1.4-1 Mar 10, 2026
updated 2.1.4-1 ← 2.1.4 diff Nov 21, 2025
updated 2.1.4 ← 2.1.3 diff Jun 1, 2025
updated 2.1.3 ← 2.1.2 diff May 19, 2025
updated 2.1.2 ← 2.1.1 diff May 5, 2025
updated 2.1.1 ← 2.1.0 diff Jul 13, 2024
updated 2.1.0 ← 2.0.4.6 diff Jun 10, 2023
updated 2.0.4.6 ← 2.0.4.5 diff Jan 22, 2023
updated 2.0.4.5 ← 2.0.4.4 diff Aug 15, 2022
updated 2.0.4.4 ← 2.0.4.2 diff Mar 22, 2022
updated 2.0.4.2 ← 2.0.4.1 diff May 12, 2021
updated 2.0.4.1 ← 2.0.4 diff Jul 5, 2020
updated 2.0.4 ← 2.0.3 diff Dec 3, 2019
updated 2.0.3 ← 2.0.2 diff Dec 17, 2018
updated 2.0.2 ← 2.0.1 diff Dec 10, 2018