Skip to content

RcppThread

R-Friendly Threading in C++

v2.4.0 · Jun 11, 2026 · MIT + file LICENSE

Description

Provides a C++11-style thread class and thread pool that can safely be interrupted from R. See Nagler (2021) <doi:10.18637/jss.v097.c01>.

Downloads

CRAN

15.2K

Last 30 days

946th

38.7K

Last 90 days

161K

Last year

Trend: +32.3% (30d vs prior 30d)

r2u CRAN

275

Last 30 days

551

Last 90 days

4.2K

Last year

Trend: +93.7% (30d vs prior 30d)

autoCRAN

5

Last 7 days

9

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

703

Last 30 days

1.6K

Last 90 days

8.2K

Last year

Trend: +11.2% (30d vs prior 30d)

c2d4u legacy CRAN

6

Last 30 days

17

Last 90 days

561

Last year

Trend: -40% (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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [58s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RcppThread)
  > 
  > test_check("RcppThread")
   -latomicspecified C++11
  using C++ compiler: 'g++.exe (GCC) 14.3.0'
  make
...[truncated]...
h("../tests.cpp"))`: Error 1 occurred building shared library.
  Backtrace:
      ▆
   1. └─Rcpp::sourceCpp(file = normalizePath("../tests.cpp")) at tests.R:6:5
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

14 2 exported

Complexity

1.4 avg / 3 max

Call network

14 nodes / 17 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Compare versions

Code

Structure

Lines of code

838

Files

35

Compiled share

8.6%

Has compiled src

Yes

Language breakdown

R 112 (13.4%)C/C++/src 72 (8.6%)Tests 590 (70.4%)Docs 60 (7.2%)Vignettes 4 (0.5%)

API

Exported functions

2

Internal functions

9

Testing & CI

Has tests

Yes

Test-to-code ratio

5.27

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

0%

\dontrun example ratio

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

2

Dep constraint coverage

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.3.0

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

26

First release

2017-10-27

Latest release

2026-06-11

Avg cadence

29 days

Cold removal rate

Dep drift

1

LOC over versions

v0.1.0: 370 LOCv0.1.1: 370 LOCv0.1.2: 373 LOCv0.1.3: 371 LOCv0.2.0: 407 LOCv0.3.0: 449 LOCv0.4.0: 451 LOCv0.5.0: 495 LOCv0.5.2: 483 LOCv0.5.3: 483 LOCv0.5.4: 483 LOCv1.0.0: 491 LOCv2.0.0: 655 LOCv2.0.1: 656 LOCv2.0.2: 656 LOCv2.1.0: 656 LOCv2.1.1: 735 LOCv2.1.2: 756 LOCv2.1.3: 756 LOCv2.1.4: 759 LOCv2.1.5: 805 LOCv2.1.6: 834 LOCv2.1.7: 831 LOCv2.2.0: 833 LOCv2.3.0: 833 LOCv2.4.0: 838 LOC

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

Reverse Dependencies (42)

imports

Dependency Network

Dependencies Reverse dependencies earthtide PAGFL Rforestry birdie bootUR bvhar chomper coupling dodgr dtwclust hdflex infoxtr itmsa lacunr lingdist +27 more reverse deps RcppThread

Version History

27 tracked
updated 2.4.0 ← 2.3.0 diff Jun 11, 2026
new 2.3.0 Mar 10, 2026
updated 2.3.0 ← 2.2.0 diff Jan 15, 2026
updated 2.2.0 ← 2.1.7 diff Jan 6, 2025
updated 2.1.7 ← 2.1.6 diff Feb 8, 2024
updated 2.1.6 ← 2.1.5 diff Oct 17, 2023
updated 2.1.5 ← 2.1.4 diff Jul 6, 2023
updated 2.1.4 ← 2.1.3 diff Jul 5, 2023
updated 2.1.3 ← 2.1.2 diff Mar 16, 2022
updated 2.1.2 ← 2.1.1 diff Mar 11, 2022
updated 2.1.1 ← 2.1.0 diff Mar 8, 2022
updated 2.1.0 ← 2.0.2 diff Feb 27, 2022
updated 2.0.2 ← 2.0.1 diff Feb 5, 2022
updated 2.0.1 ← 2.0.0 diff Jan 27, 2022
updated 2.0.0 ← 1.0.0 diff Jan 25, 2022