← Back to home
Comparison · DevOps

rappdirs vs xfun

A side-by-side editorial comparison of rappdirs and xfun — release velocity, themes, recent moves, and the top alternatives to consider.

rappdirs vs xfun: at a glance

Featurerappdirsxfun
SectorDevOpsDevOps
Velocity score0.00.0
Sparks · 30d00
Top themesfilesystem, config-paths, dependency, dormantutilities, publishing, headless-browser, litedown
Last editorial update1h ago1h ago
WebsiteVisit →Visit →

What is rappdirs?

Load-bearing across CRAN, and untouched since January 2021.

rappdirs answers one question — where does an application put its data, cache and config on this operating system — and it has answered it the same way since 2014. The last release was 0.3.3 in January 2021, a revert of accidental vectorisation introduced four days earlier. The only substantive change in the package's visible history is 0.3.2 teaching user_data_dir(), use_cache_dir() and use_config_dir() to respect the R_USER_DATA_DIR, R_USER_CACHE_DIR and R_USER_CONFIG_DIR environment variables.

Read the full rappdirs trajectory →

What is xfun?

Yihui's utility grab-bag is quietly growing a web server and a headless browser.

xfun is the shared utility layer under knitr, rmarkdown, bookdown and litedown, and its recent releases cluster in three places: the record() function that captures code output for litedown, a local app-serving stack built on R's internal httpd, and a headless-browser toolkit. Version 0.58 replaced direct httpd routing with a proxy and added serve_dir() and random_port(); 0.55 added browser_print() and 0.60 added browser_dom(), which runs JavaScript on a page and returns the rendered DOM.

Read the full xfun trajectory →

rappdirs vs xfun: editorial side-by-side

R
rappdirs
DEVOPS
0.0

Load-bearing across CRAN, and untouched since January 2021.

◆ Current state

rappdirs answers one question — where does an application put its data, cache and config on this operating system — and it has answered it the same way since 2014. The last release was 0.3.3 in January 2021, a revert of accidental vectorisation introduced four days earlier. The only substantive change in the package's visible history is 0.3.2 teaching user_data_dir(), use_cache_dir() and use_config_dir() to respect the R_USER_DATA_DIR, R_USER_CACHE_DIR and R_USER_CONFIG_DIR environment variables.

◆ Where it's heading

Nothing is heading anywhere, and that is the finding. A port of a Python utility with no open direction, four releases in eleven years, and a dependency position underneath a large share of CRAN packages that need a cache directory. The 0.3.2 and 0.3.3 pair is instructive: a real improvement shipped alongside an accidental behaviour change that had to be reverted within the week, and then silence.

◆ Prediction

The entries give no basis for predicting a next release; on eleven years of evidence the most likely next change is a CRAN-mandated check fix rather than anything user-facing.

X
xfun
DEVOPS
0.0

Yihui's utility grab-bag is quietly growing a web server and a headless browser.

◆ Current state

xfun is the shared utility layer under knitr, rmarkdown, bookdown and litedown, and its recent releases cluster in three places: the record() function that captures code output for litedown, a local app-serving stack built on R's internal httpd, and a headless-browser toolkit. Version 0.58 replaced direct httpd routing with a proxy and added serve_dir() and random_port(); 0.55 added browser_print() and 0.60 added browser_dom(), which runs JavaScript on a page and returns the rendered DOM.

◆ Where it's heading

The package is accreting the infrastructure Yihui's publishing tools need rather than staying a pile of small helpers. Serving directories, allocating ports, proxying the help server, driving a headless browser and printing to PDF are all pieces of one pipeline: render R output to HTML, then get it onto a screen or into a static file without a heavyweight dependency. The rest of the release stream is release-automation tooling for the author's own CRAN workflow and a long tail of parser bug fixes in taml_load().

◆ Prediction

Expect the browser functions to consolidate into a documented interface used directly by litedown, and expect cache_rds() to be fully retired in favour of cache_exec() now that it is no longer recommended.

Alternatives to rappdirs and xfun

Other DevOps products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either rappdirs or xfun.

See all rappdirs alternatives → · See all xfun alternatives →

Recent activity from rappdirs and xfun

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 1mo agoxfunbrowser_dom() added; Windows silently truncated self-contained HTML
  2. 1mo agoxfunpost_release() automates post-CRAN chores; nested math fixed
  3. 2mo agoxfunnew_app() moves to a proxy; serve_dir() and random_port() added
  4. 4mo agoxfunLiteral JavaScript in tojson(); record() bottleneck fixed
  5. 6mo agoxfunDeprecated attr() and qs support removed; parallel rev_check
  6. 8mo agoxfunbrowser_print() opens the headless-browser path
  7. 5y agorappdirsRevert accidental vectorisation from 0.3.2
  8. 5y agorappdirsRespect the R_USER_*_DIR environment variables
  9. 10y agorappdirsrappdirs 0.3.1
  10. 11y agorappdirsFirst CRAN release

Frequently asked questions

What is the difference between rappdirs and xfun?

They serve adjacent needs but don't currently overlap on shipped themes. rappdirs and xfun are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is rappdirs better than xfun?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. rappdirs and xfun are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). For your specific use case, the alternatives sections above list other DevOps products to evaluate alongside.

What are the best alternatives to rappdirs?

Top rappdirs alternatives in DevOps are ranked by recent ship velocity. Browse the "rappdirs alternatives" section above for the current picks, or visit /alternatives/rappdirs for the full list with editorial commentary on each.

What are the best alternatives to xfun?

Top xfun alternatives in DevOps are ranked by recent ship velocity. Browse the "xfun alternatives" section above for the current picks, or visit /alternatives/xfun for the full list with editorial commentary on each.