RcppTskit
'R' Access to the 'tskit C' API
Description
'Tskit' enables efficient storage, manipulation, and analysis of ancestral recombination graphs (ARGs) using succinct tree sequence encoding. The tree sequence encoding of an ARG is described in Wong et al. (2024) <doi:10.1093/genetics/iyae100>, while `tskit` project is described in Jeffrey et al. (2026) <doi:10.48550/arXiv.2602.09649>. See also <https://tskit.dev> for project news, documentation, and tutorials. 'Tskit' provides 'Python', 'C', and 'Rust' application programming interfaces (APIs). The 'Python' API can be called from 'R' via the 'reticulate' package to load and analyse tree sequences as described at <https://tskit.dev/tutorials/tskitr.html>. 'RcppTskit' provides 'R' access to the 'tskit C' API for cases where the 'reticulate' option is not optimal; for example, high-performance or low-level work with tree sequences. Currently, 'RcppTskit' provides a limited set of 'R' functions because the 'Python' API and 'reticulate' already covers most needs.
Downloads
296
Last 30 days
13740th
371
Last 90 days
371
Last year
Trend: +294.7% (30d vs prior 30d)
CRAN Check Status
Show all 14 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-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | WARNING |
| r-patched-linux-x86_64 | ERROR |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (2 non-OK)
whether package can be installed
Found the following significant warnings:
tskit/kastore.c:1157:32: warning: unknown conversion type character 'z' in format [-Wformat=]
tskit/kastore.c:1157:18: warning: too many arguments for format [-Wformat-extra-args]
tskit/kastore.c:1158:32: warning: unknown conversion type character 'z' in format [-Wformat=]
tskit/kastore.c:1158:18: warning: too many arguments for format [-Wformat-extra-args]
tskit/kastore.c:1165:40: warning: unknown conversion type character 'z' in format [-Wformat=]
tskit/kastore.c:1165:53: warning: unknown conversion type character 'z' in format [-Wformat=]
tskit/kastore.c:1165:62: warning: format '%p' expects argument of type 'void *', but argument 6 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
tskit/kastore.c:1165:13: warning: unknown conversion type character 'z' in format [-Wformat=]
tskit/kastore.c:1165:13: warning: format '%p' expects argument of type 'void *', but argument 7 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
tskit/kastore.c:1165:13: warning: too many arguments for format [-Wformat-extra-args]
See 'd:/Rcompile/CRANpkg/local/4.4/RcppTskit.Rcheck/00install.out' for details.
* used C compiler: 'gcc.exe (GCC) 13.3.0'
* used C++ compiler: 'g++.exe (GCC) 13.3.0'
re-building of vignette outputs
Error(s) in re-building vignettes:
...
--- re-building ‘RcppTskit_intro.qmd’ using html
[31m
processing file: RcppTskit_intro.qmd
[39m
Information on package 'RcppTskit'
Description:
Type: Package
Package: RcppTskit
Title: 'R' Access to the 'tskit C' API
Version: 0.2.0
Date: 2026-01-27
Authors@R: c( person("Gregor", "Gorjanc", ,
"gregor.gorjanc@gmail.com", role = c("aut",
"cre", "cph"), comment = c(ORCID =
"0000-0001-8008-2787")), person("Tskit
Developers", role = "cph", comment =
"Authors of included tskit C library") )
Description: 'Tskit' enables efficient storage,
manipulation, and analysis of ancestral
recombination graphs (ARGs) using succinct
...[truncated]...
u/lib/libpython3.12.so:
cannot enable executable stack as shared object requires: Invalid argument
---
Backtrace:
▆
1. ├─ts$r_to_py()
2. │ └─RcppTskit:::ts_ptr_r_to_py(...)
3. │ ├─tskit_module$load
4. │ └─reticulate:::`$.python.builtin.module`(tskit_module, "load")
5. │ └─reticulate::py_get_attr(x, name, TRUE)
6. └─reticulate (local) `<fn>`()
7. └─reticulate:::initialize_python()
8. └─base::tryCatch(...)
9. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
10. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
11. └─value[[3L]](cond)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[31mExecution halted[39m
[33mWARN: Error encountered when rendering files[39m
Caused by error:
! System command 'quarto' failed
--- failed re-building ‘RcppTskit_intro.qmd’
SUMMARY: processing the following file failed:
‘RcppTskit_intro.qmd’
Error: Vignette re-building failed.
Execution halted
Check History
ERROR 12 OK · 0 NOTE · 1 WARNING · 1 ERROR · 0 FAILURE Mar 26, 2026
re-building of vignette outputs
Error(s) in re-building vignettes: ... --- re-building ‘RcppTskit_intro.qmd’ using html [31m processing file: RcppTskit_intro.qmd [39m Information on package 'RcppTskit' Description: Type: Package Package: ...[truncated]... when rendering files[39m Caused by error: ! System command 'quarto' failed --- failed re-building ‘RcppTskit_intro.qmd’ SUMMARY: processing the following file failed: ‘RcppTskit_intro.qmd’ Error: Vignette re-building failed. Execution halted
whether package can be installed
Found the following significant warnings: tskit/kastore.c:1157:32: warning: unknown conversion type character 'z' in format [-Wformat=] tskit/kastore.c:1157:18: warning: too many arguments for format [-Wformat-extra-args] tskit/kastore.c:1158:3 ...[truncated]... skit/kastore.c:1165:13: warning: too many arguments for format [-Wformat-extra-args] See 'd:/Rcompile/CRANpkg/local/4.4/RcppTskit.Rcheck/00install.out' for details. * used C compiler: 'gcc.exe (GCC) 13.3.0' * used C++ compiler: 'g++.exe (GCC) 13.3.0'
WARNING 13 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
whether package can be installed
Found the following significant warnings: tskit/kastore.c:1157:32: warning: unknown conversion type character 'z' in format [-Wformat=] tskit/kastore.c:1157:18: warning: too many arguments for format [-Wformat-extra-args] tskit/kastore.c:1158:3 ...[truncated]... skit/kastore.c:1165:13: warning: too many arguments for format [-Wformat-extra-args] See 'd:/Rcompile/CRANpkg/local/4.4/RcppTskit.Rcheck/00install.out' for details. * used C compiler: 'gcc.exe (GCC) 13.3.0' * used C++ compiler: 'g++.exe (GCC) 13.3.0'