Application Directories: Determine Where to Save Data, Caches, and Logs
Overview
An easy way to determine which directories on the users computer you should use to save data, caches and logs. A port of Python's 'Appdirs' (https://github.com/ActiveState/appdirs) to R.
- Upkeep
From NEWS.md in the release
Install
Health
ERRORtestsr-release-macos-arm64
Running ‘testthat.R’ [0s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(rappdirs)
>
> # ensure CRAN settings don't affect tests
> Sys.unsetenv("R_USER_DATA_DIR")
> Sys.unsetenv("R_USER_CONFIG_DIR")
> Sys.unsetenv("R_USER_CACHE_DIR")
>
> test_check("rappdirs")
[ FAIL 0 | WARN 0 | SKIP 3 | PASS 45 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
Error in base::nchar(wide_chars$test, type = "width") :
cannot open file '/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/cli/R/sysdata.rdb': No such file or directory
Calls: test_check ... unicode_pre -> setup_unicode_width_fix -> <Anonymous>
Execution halted- ERROR12 OK, 1 ERRORNow
- ERROR11 OK, 1 ERROR2026-04-27
- OK14 OK2026-03-10
Documentation
- Help pages
- 6 (2 internal)includes a package overview page
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 80%
- Documented parameters
- 100%
- Return-value docs
- 0%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 75%
- Median days to close, 50 most recently updated closed issues
- 3
- Median days to close, 50 most recently updated closed PRs
- 3
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
13 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/r-lib/rappdirs on 2026-10-25.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-01-20 · The repository has a site deploy workflow
pkgdown site last built 2026-01-20
Show all practicesHide 2 practices
Dependencies
Installing rappdirs adds no packages beyond those that come with R.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 70 more dependents and 20 packages that suggest it on CRAN ↗
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.3.4Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.3.32021-01-31 · diff ↗
- 0.3.22021-01-27 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 0.3.12016-03-28 · diff ↗
- RR 3.2.0 released · 2015-04-16
Show 2 earlier eventsHide 2 earlier events
- 0.32014-09-02
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-09-02
- Total releases
- 5 / 12 yrs
- License
- MIT + file LICENSE OSI
- Copyright
- Original python appdirs module copyright (c) 2010 ActiveState Software Inc. R port copyright Hadley Wickham, Posit, PBC. See file LICENSE for details.
- Minimum R
- ≥ 4.1
- Download size
- 11 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rappdirs")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.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.