callr
3.8.0Call R from R
Overview
It is sometimes useful to perform a computation in a separate R process, without affecting the current R process at all. This packages does exactly that.
r(),rcmd(),rscript()andrscript_processnow acceptpty = TRUEto run the child R process in a pseudo-terminal.- callr now supports
carrier::crate().package = NULL, the new default, handles functions created withcarrier::crate()automatically (#249). - The
CALLR_TMPDIRenvironment variable can now be set to override the directory callr uses for its auxiliary temporary files. When unset, callr keeps usingtempdir()(#172). r_bg()(andr()) subprocesses now exit with a non-zero status when the evaluated expression throws an error or is interrupted, instead of always exiting with status 0 (#291).r(),r_bg(),r_session$new()and friends now acceptlibpath = NULL, which leaves the subprocess library path alone, so the subprocess uses the.libPaths()of a fresh R session (e.g. as set up by a project.Rprofile) instead of inheriting the parent's library path (#255).
Show all changes in 3.8.0Hide the rest of the changes in 3.8.0
- callr is now instrumented with OpenTelemetry. When an OpenTelemetry SDK (such as otelsdk) is loaded and configured, callr emits spans for
r(),rcmd(),rscript(),r_processandr_session(including per-call$call,$readand$closespans), and propagates the W3Ctraceparentheader into the subprocess so spans created inside the child are parented to the parent's span. See the 'OpenTelemetry' article for details (#302). r(),rcmd(),rscript()and friends no longer hang on Windows when called withstdout = "|"(or any value ofstdout/stderrother than a file path orNULL) (#313).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- NOTE12 OK, 1 NOTE2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 26 (5 internal)includes a package overview page
- Examples that run
- 100%14 run in a plain check (8 of them under a condition)
- Exported functions with examples
- 67%
- Documented parameters
- 99%
- Return-value docs
- 57%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- 52
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
13 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/r-lib/callr on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-06-08 · The repository has a site deploy workflow
pkgdown site last built 2026-06-08
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-06-05Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: CLAUDE.md
Dependencies
Installing callr adds 4 packages (2 with compiled code, 493 KB of source tarballs). Heaviest: processx 191 KB, ps 168 KB, otel 71 KB.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 37 more dependents and 147 packages that suggest it on CRAN ↗
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 3.8.0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 3.7.62024-03-25 · diff ↗
- 3.7.52024-02-19 · diff ↗
- 3.7.42024-02-19 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 3.7.32022-11-02 · diff ↗
- 3.7.2
- 3.7.12022-07-13 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 3.7.02021-04-20 · diff ↗
- 3.6.0
- 3.5.12020-10-13 · diff ↗
Show 24 earlier eventsHide 24 earlier events
- 3.5.02020-10-08 · diff ↗
- 3.4.42020-09-07 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 3.4.32020-03-28 · diff ↗
- 3.4.22020-02-12 · diff ↗
- 3.4.12020-01-24 · diff ↗
- 3.4.02019-12-09 · diff ↗
- 3.3.22019-09-22 · diff ↗
- 3.3.12019-07-18 · diff ↗
- 3.3.02019-07-04 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 3.2.02019-03-15 · diff ↗
- 3.1.1
- 3.1.0
- 3.0.0
- 2.0.42018-05-15 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 2.0.32018-04-11 · diff ↗
- 2.0.22018-02-11 · diff ↗
- 2.0.12018-01-30 · diff ↗
- 2.0.02018-01-28 · diff ↗ ·
added 12 exports
poll, process, r_bg, r_copycat, r_process, r_process_options, rcmd_bg, rcmd_copycat, rcmd_process, rcmd_process_options, rcmd_safe_env, run - RR 3.4.0 released · 2017-04-21
- 1.0.02016-06-18
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-06-18
- Total releases
- 29 / 10 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.4
- Download size
- 111 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("callr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.