Skip to content

sourcoise

Source a Script and Cache

v1.1.0 · Jan 7, 2026 · MIT + file LICENSE

Description

Provides a function that behaves nearly as base::source() but implements a caching mechanism on disk, project based. It allows to quasi source() R scripts that gather data but can fail or consume to much time to respond even if nothing new is expected. It comes with tools to check and execute on demand or when cache is invalid the script.

Downloads

CRAN

494

Last 30 days

8173rd

1.5K

Last 90 days

6.2K

Last year

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

r2u CRAN

0

Last 30 days

24

Last 90 days

116

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

4

Last 7 days

12

Last 30 days

3

All-time

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

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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether package can be installed

install log ‘’ does not exist
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 25, 2026
ERROR r-release-macos-x86_64

package dependencies

Package required but not available: ‘qs2’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

3,845

Files

57

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,419 (62.9%)Tests 491 (12.8%)Docs 650 (16.9%)Vignettes 285 (7.4%)

API

Exported functions

11

Internal functions

38

Recent export changes

v1.1.0+3 sourcoise_lapse, sourcoise_priority, sourcoise_untrack
v1.0.0+1 sourcoise_clear_all

Testing & CI

Has tests

Yes

Test-to-code ratio

0.20

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

27.3%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

28.6%

Unsafe pattern score

3

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.2.0

System requirements

1

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

6

First release

2025-03-15

Latest release

2026-01-07

Avg cadence

29 days

Cold removal rate

Dep drift

8

LOC over versions

v0.5.0: 1,789 LOCv0.6.0: 2,331 LOCv0.6.1: 2,344 LOCv0.6.2: 2,344 LOCv1.0.0: 2,979 LOCv1.1.0: 3,845 LOC

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

Dependency Network

Dependencies Reverse dependencies cli digest dplyr fs glue jsonlite knitr lobstr logger lubridate memoise purrr qs2 RcppSimdJson rlang +4 more dependencies sourcoise

Version History

7 tracked
new 1.1.0 Mar 10, 2026
updated 1.1.0 ← 1.0.0 diff Jan 6, 2026
updated 1.0.0 ← 0.6.2 diff Dec 8, 2025
updated 0.6.2 ← 0.6.1 diff May 26, 2025
updated 0.6.1 ← 0.6.0 diff May 23, 2025
updated 0.6.0 ← 0.5.0 diff May 22, 2025
new 0.5.0 Mar 14, 2025