Skip to content

callr

3.8.0

Call R from R

85packages dependsuggested by 147
15.1Mdownloads / year
70.2%test coverage
13/13flavors OK

Overview

About
Maintained by Gábor CsárdiCRAN page ↗GitHub ↗Website ↗Issues ↗Declared funders: Ascent Digital Services and Posit Software, PBC

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.

Changes in 3.8.0
  • r(), rcmd(), rscript() and rscript_process now accept pty = TRUE to run the child R process in a pseudo-terminal.
  • callr now supports carrier::crate(). package = NULL, the new default, handles functions created with carrier::crate() automatically (#249).
  • The CALLR_TMPDIR environment variable can now be set to override the directory callr uses for its auxiliary temporary files. When unset, callr keeps using tempdir() (#172).
  • r_bg() (and r()) 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 accept libpath = 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_process and r_session (including per-call $call, $read and $close spans), and propagates the W3C traceparent header 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 with stdout = "|" (or any value of stdout/stderr other than a file path or NULL) (#313).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • NOTE12 OK, 1 NOTE2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 3.8.0
READMEYes · 1,356 wordsVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 3.8.0Citation fileNoWebsiteYes · pkgdown
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

15.1M
CRAN downloads in the past year
Rank #38 · ~41.3K/day · ~1.3M/mo
Daily download trend is not available in this view yet.
1.1M30 days
3.6M90 days
15.1M1 year
Compare downloads with other packages →
Also on200.7K r2u173 autocran1.4M conda_forge22.5K c2d4u

Repository

r-lib/callr ↗Organization: r-lib
304Stars
41Forks
3Open issues
0Open PRs
23Releases
748Commits
22Commit identities
r
748 commits · Last activity 2026-06-08 · 0% stars, 30d · Default branch at 3.8.0.9000, ahead of CRAN 3.8.0 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2025-08-04 · 3002026-08-26 · 304
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Code of conduct
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-06-08 · The repository has a site deploy workflow

pkgdown site last built 2026-06-08

Coverage (2)
Coverage reporting (Codecov).covrignore
Show all practicesHide 1 practice
Lint, format, editor (4)
Lint workflowAirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-06-05
    Seen in the repository: CLAUDE.md
    Named in .Rbuildignore: CLAUDE.md
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

Installing callr adds 4 packages (2 with compiled code, 493 KB of source tarballs). Heaviest: processx 191 KB, ps 168 KB, otel 71 KB.

Depends (1)
R >= 3.4
Imports (4)
LinkingTo (0)
none
Enhances (0)
none

People & History

People (4)
Author, Maintainer since 1.0.0 (2016), Copyright holder
Author · added in 2.0.0
Copyright holder, Funder · added in 3.7.5
Copyright holder, Funder · added in 3.7.4
Listed in earlier versions (2)
Mango Solutions
no longer listed · 2.0.4 to 3.7.4
RStudio
no longer listed · 2.0.4 to 3.7.3
Releases (29)

Pick two releases to compare their code metrics.

Show 24 earlier eventsHide 24 earlier events

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")
Csárdi, G., Ascent Digital Services, Posit Software, PBC, & Chang, W. (2026). callr: Call R from R (Version 3.8.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for callr version 3.8.0 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy