causalDisco
Tools for Causal Discovery on Observational Data
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
567
Last 30 days
6508th
1.7K
Last 90 days
11.8K
Last year
Trend: -7.2% (30d vs prior 30d)
2
Last 30 days
60
Last 90 days
181
Last year
Trend: -85.7% (30d vs prior 30d)
CRAN Check Status
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
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
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
API
Exported functions
75
Internal functions
115
Recent export changes
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
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.