R Observatory
Search
install.packages("rappdirs")
CRAN checks, method
1 of 13platforms with problems
CRAN 30-day downloads, method
929K−5.3% down on the 30 days before, the worse direction
Test coverage, method
97%of lines run by tests

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.

Maintainer
Hadley Wickham
Latest release
17 Jan 2026
First release
2 Sep 2014

Compare with another package

More details
Releases
5
Needs compilation
Yes
Needs R
>= 4.1
Config/Needs/website
tidyverse/tidytemplate
Config/testthat/edition
3
Config/usethis/last-upkeep
2025-05-05
RoxygenNote
7.3.3
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("rappdirs")
APA
Wickham, H., ActiveState, Posit Software, PBC, Csardi, G., Davis, T., Jefferis, G., Mick, T., Petrisor, E., & Ratnakumar, S. (2026). rappdirs: Application Directories: Determine Where to Save Data, Caches,
and Logs (Version 0.3.4) [Computer software]. https://doi.org/10.32614/CRAN.package.rappdirs
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for rappdirs version 0.3.4 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

1 of 13 check platforms have warnings or errors.

  • r-release-macos-arm64

    The current release of R on macOS, arm64

    Error

    Version checked
    0.3.4
    Time taken
    11 s

    tests: Error

    Running ‘testthat.R’ [0s/1s]

    Full output

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.3.4
    Time taken
    32 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.3.4
    Time taken
    26 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.3.4
    Time taken
    23 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.3.4
    Time taken
    20 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.3.4
    Time taken
    118 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.3.4
    Time taken
    25 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.3.4
    Time taken
    62 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.3.4
    Time taken
    63 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.3.4
    Time taken
    23 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.3.4
    Time taken
    23 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.3.4
    Time taken
    33 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.3.4
    Time taken
    58 s
  • 1 Error
  • 12 OK
Check output (1)

tests, Error on 1 platform

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

Over time

No change since 27 Apr 2026

As a list (2)
ChangedWorst statusOKNotesWarningsErrors
27 Apr 2026Error11001
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
1,196,500+3.7% up on the 30 days before, the better directionIt is the sum of 6 channels: CRAN, r2u, autoCRAN, conda-forge, Bioconda and c2d4u.

CRAN rank

62 of 26,530

CRAN

929,491 downloads in the last 30 days

Rank
62 of 26,530
Change
−5.3% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

56,078 downloads in the last 30 days

Rank
25 of 30,526
Change
+117% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

4 downloads in the last 30 days

Rank
13,992 of 29,212
Change
−50% down on the 30 days before, the worse direction

It is in the total. Take it out

conda-forge

209,568 downloads in the last 30 days

Rank
52 of 3,828
Change
+44.8% up on the 30 days before, the better direction

It is in the total. Take it out

Bioconda

28 downloads in the last 30 days

Rank
3,910 of 4,976
Change
+12% up on the 30 days before, the better direction

It is in the total. Take it out

c2d4u, no longer updated

1,331 downloads in the last 30 days

Rank
51 of 7,575
Change
−8.1% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
0
Dependent packages
118
Suggested by
20
Optional extras (4)
Dependent packages (50 of 118)
PackageTitleDownloads in 30 days
sassSyntactically Awesome Style Sheets ('Sass')1,213,166
gargleUtilities for Working with Google APIs434,630
usethisAutomate Package and Project Setup220,769
reticulateInterface to 'Python'173,357
yulab.utilsSupporting Functions for Packages Maintained by 'YuLab-SMU'74,617
AzureAuthAuthentication Services for Azure Active Directory32,682
measurementProtocolSend Data from R to the Measurement Protocol23,086
learnrInteractive Tutorials for R22,431
tigrisLoad Census TIGER/Line Shapefiles18,034
geodataAccess Geographic Data16,184
tesseractOpen Source OCR Engine9,047
tsibbledataDiverse Datasets for 'tsibble'8,021
eurostatTools for Eurostat Open Data7,745
pandocManage and Run Universal Converter 'Pandoc' from 'R'7,417
thematicUnified and Automatic 'Theming' of 'ggplot2', 'lattice', and 'base' R Graphics6,117
giscoRDownload 'Eurostat' 'GISCO' Spatial Data5,694
textdataDownload and Load Various Text Datasets4,541
pinsPin, Discover, and Share Resources4,114
batchtoolsTools for Computation on Batch Systems3,644
nflreadrDownload 'nflverse' Data3,184
rhubTools for R Package Developers3,168
torchvisionModels, Datasets and Transformations for Images2,743
rdhsAPI Client and Dataset Management for the Demographic and Health Survey (DHS) Data2,096
binmanA Binary Download Manager1,961
hoardrManage Cached Files1,960
gmailrAccess the 'Gmail' 'RESTful' API1,771
shinyliveRun 'shiny' Applications in the Browser1,496
pkgfilecacheDownload and Manage Optional Package Data1,317
mapSpainAdministrative Boundaries and Static Map Tiles for Spain1,276
BIOMASSEstimating Aboveground Biomass and Its Uncertainty in Tropical Forests1,229
opencpuProducing and Reproducing Results1,029
pkgcheckPackage Checks for 'rOpenSci'1,012
exifrEXIF Image Data in R999
qgisprocessUse 'QGIS' Processing Algorithms972
jmvconnectConnect to the 'jamovi' Statistical Spreadsheet959
climaemetTools for AEMET Climate Data860
comtradrInterface with the United Nations Comtrade API843
rstudio.prefsManage 'RStudio' Preferences and Addin Shortcuts833
rgoogleadsLoading Data from 'Google Ads API'818
graph4lgBuild Graphs for Landscape Genetics Analysis800
bcmapsMap Layers and Spatial Utilities for British Columbia728
wdparInterface to the World Database on Protected Areas700
shelterSupport for Secure API Key Management699
tidyhydatExtract and Tidy Canadian 'Hydrometric' Data684
CatastRoInterface to the Spanish 'Catastro' Web Services626
epidatrClient for Delphi's 'Epidata' API611
multilinguerGentle Language Installer for R User593
VertexWiseRSimplified Vertex-Wise Analyses of Whole-Brain and Subcortical Surface575
nhdRTools for Working with the National Hydrography Dataset551
beastierCall 'BEAST2'545
Functions
24
Public exports
7
Lines of R code
498
Median complexity
2
Functions (24)
Size and composition

Lines by kind (1,209)

KindLinesShare
R code49841%
Tests26222%
Documentation39733%
Compiled code524%

Lines by language

LanguageLinesShare
R71659%
Rd39733%
C524%
Markdown444%

Languages are counted from file extensions.

Files
28
R functions
21
Compiled functions
3
Complexity
Median
2
Mean
2.1
Highest
6
Median lines per function
13
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
21
Calls
46
Unconnected
1
Groups
1
Growth (5 releases)
Total lines by release
1,010 on 2 Sep 20141,209 on 17 Jan 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
96.6%
Expressions run by tests
94.7%
Test cases
19
Exports named in tests
100%
Coverage by file (5)
Coverage run
Lines counted
169
Lines the tests ran
163
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
19
Snapshot tests
5
Lines of tests
262
Test lines per line of code
0.53
Exports documented
100%
Arguments documented
100%
Return value documented
0%
Help pages with examples
66.7%
Examples run in checks
100%
Other documentation
README
Yes, 199 words
Release notes file
Yes
Help pages
6
Lines of documentation
397

Funded by Posit Software, PBC

Earlier names (1)
  • RStudio

r-lib / rappdirs on github.com

Stars
92no change on 30 days ago
Forks
14
Open issues
6
Last commit
20 Jan 2026
Activity
Commits
178
Open pull requests
0
Tagged releases
5
Latest tagged release
v0.3.4, 20 Jan 2026
In development
Default branch at 0.3.4.9000, ahead of CRAN 0.3.4 (checked 2026-10-25)
Issues closed in
3 days (median)
Pull requests closed in
3 days (median)
Pull requests merged
75%
Created
10 Aug 2012
Licence file reads as
–
Development practices (13)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Governance and communityCode of conduct
Docs sourceREADME.Rmd, pkgdown
GitHub Pages site last deployed 2026-01-20
The repository has a site deploy workflow
pkgdown site last built 2026-01-20
CoverageCoverage reporting (Codecov)
CRAN release processcran-comments.md, revdep/
Lint, format, editorAir, VS Code, RStudio project

Method, repository practices

Across r-lib

R releases
  • On CRAN
  • Release
VersionReleasedR
0.3.4 current17 Jan 20264.5.2
0.3.331 Jan 20214.0.3
0.3.227 Jan 20214.0.3
0.3.128 Mar 20163.2.4
0.32 Sep 20143.1.1
Release notes (0.3.4)
  • Upkeep