Skip to content

causalDisco

Tools for Causal Discovery on Observational Data

v1.1.0 · Apr 13, 2026 · GPL-2

Description

Tools for causal structure learning from observational data, with emphasis on temporally ordered variables. The package implements the Temporal Peter–Clark (TPC) algorithm (Petersen, Osler & Ekstrøm, 2021; <doi:10.1093/aje/kwab087>), the Temporal Greedy Equivalence Search (TGES) algorithm (Larsen, Ekstrøm & Petersen, 2025; <doi:10.48550/arXiv.2502.06232>) and Temporal Fast Causal Inference (TFCI). It provides a unified framework for specifying background knowledge, which can be incorporated into the implemented algorithms from the R packages 'bnlearn' (Scutari, 2010; <doi:10.18637/jss.v035.i03>) and 'pcalg' (Kalish et al., 2012; <doi:10.18637/jss.v047.i11>), as well as the Java library 'Tetrad' (Scheines et al., 1998; <doi:10.1207/s15327906mbr3301_3>). The package further includes utilities for visualization, comparison, and evaluation of graph structures, facilitating performance evaluation and methodological studies.

Downloads

CRAN

567

Last 30 days

6508th

1.7K

Last 90 days

11.8K

Last year

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

r2u CRAN

2

Last 30 days

60

Last 90 days

181

Last year

Trend: -85.7% (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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘micd’

Package suggested but not available for checking: ‘mice’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 14, 2026
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.3Mb
  sub-directories of 1Mb or more:
    doc    3.7Mb
    help   1.4Mb
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

37,690

Files

349

Compiled share

0%

Has compiled src

No

Language breakdown

R 15,444 (41%)Tests 11,930 (31.7%)Docs 8,590 (22.8%)Vignettes 1,726 (4.6%)

API

Exported functions

75

Internal functions

115

Recent export changes

v1.1.0+3 list_registered_tetrad_algorithms, make_method, make_runner
v1.0.1+61 BnlearnSearch, CausalDiscoSearch, PcalgSearch +58 more  −30 F1, FDR, FOR 27 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.77

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

63.8%

\dontrun example ratio

1.3%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

12.5%

Unsafe pattern score

0

Dep constraint coverage

4.8%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.2.0

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2022-05-12

Latest release

2026-04-13

Avg cadence

48 days

Cold removal rate

100%

Dep drift

32

LOC over versions

v0.9.1: 3,272 LOCv0.9.5: 6,544 LOCv1.0.1: 36,502 LOCv1.1.0: 37,690 LOC

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

Dependency Network

Dependencies Reverse dependencies bnlearn caugi checkmate cli digest dplyr glue gtools lifecycle micd pcalg purrr R6 readr rlang +5 more dependencies causalDisco

Version History

5 tracked
updated 1.1.0 ← 1.0.1 diff Apr 13, 2026
new 1.0.1 Mar 10, 2026
updated 1.0.1 ← 0.9.5 diff Feb 23, 2026
updated 0.9.5 ← 0.9.1 diff Jan 19, 2026
new 0.9.1 May 11, 2022