Skip to content

runonce

Run Once and Save Result

v0.3.3 · Oct 7, 2025 · GPL-3

Description

Package 'runonce' helps automating the saving of long-running code to help running the same code multiple times. If you run some long-running code once, it saves the result in a file on disk. Then, if the result already exists, i.e. if the code has already been run and its output has already been saved, it just reads the result from the stored file instead of running the code again.

Downloads

2.9K

Last 30 days

2455th

7K

Last 90 days

30.9K

Last year

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

CRAN Check Status

14 OK
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 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 Mar 24, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 20, 2026
ERROR r-devel-linux-x86_64-debian-clang

tests

Running ‘testthat.R’ [3s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(runonce)
  > 
  > test_check("runonce")
     user  system elapsed 
    0.003   0.000   2.009 
  Saving _problems/test-ski
...[truncated]...
st-skip-run.R:34:3'): skip_run() works ──────────────────────────
  Expected `time2[[3]]` <= 0.1.
  Actual comparison: 0.1030 > 0.1000
  Difference: 0.0030 > 0
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 30 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies bigassertr urltools bigsnpr runonce

Version History

new 0.3.3 Mar 10, 2026
updated 0.3.3 ← 0.3.2 diff Oct 6, 2025
updated 0.3.2 ← 0.2.3 diff Jul 29, 2025
updated 0.2.3 ← 0.2.2 diff Oct 1, 2021
new 0.2.2 Jul 26, 2020