{"id":14068770,"url":"https://github.com/r-lib/rappdirs","last_synced_at":"2025-12-12T01:05:15.810Z","repository":{"id":54971063,"uuid":"5370006","full_name":"r-lib/rappdirs","owner":"r-lib","description":"Find OS-specific directories to store data, caches, and logs. A port of python's AppDirs","archived":false,"fork":false,"pushed_at":"2024-05-21T08:51:28.000Z","size":1270,"stargazers_count":86,"open_issues_count":9,"forks_count":16,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-27T04:51:30.159Z","etag":null,"topics":["appdir","r"],"latest_commit_sha":null,"homepage":"https://rappdirs.r-lib.org","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-lib.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-08-10T14:06:28.000Z","updated_at":"2025-03-11T20:21:54.000Z","dependencies_parsed_at":"2024-05-21T10:23:57.507Z","dependency_job_id":"3affc441-309b-4738-9def-5329138f6991","html_url":"https://github.com/r-lib/rappdirs","commit_stats":{"total_commits":125,"total_committers":8,"mean_commits":15.625,"dds":"0.46399999999999997","last_synced_commit":"212b46397ea0f61983445bb7b5e9ce02f4fa8372"},"previous_names":["hadley/rappdirs"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Frappdirs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Frappdirs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Frappdirs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Frappdirs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-lib","download_url":"https://codeload.github.com/r-lib/rappdirs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149502,"owners_count":20891954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appdir","r"],"created_at":"2024-08-13T07:06:23.763Z","updated_at":"2025-12-12T01:05:15.779Z","avatar_url":"https://github.com/r-lib.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# rappdirs\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/r-lib/rappdirs/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-lib/rappdirs/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/r-lib/rappdirs/branch/main/graph/badge.svg)](https://app.codecov.io/gh/r-lib/rappdirs?branch=main)\n\u003c!-- badges: end --\u003e\n\n`rappdirs` is a port of [appdirs](https://github.com/ActiveState/appdirs) to R.\nIt lets you find the appropriate directory to save caches, logs, and data, on Linux, Mac, and Windows.\nIt allows you to store files that need to shared across R sessions in a way that aligns with the [CRAN policies](https://cran.r-project.org/web/packages/policies.html).\n\n## Motivation\n\nWhat directory should your app use for storing user data?\nIf running on Mac OS X, you should use:\n\n    ~/Library/Application Support/\u003cAppName\u003e\n\nIf on Windows (at least English Win XP) that should be:\n\n    C:\\Documents and Settings\\\u003cUser\u003e\\Application Data\\Local Settings\\\u003cAppAuthor\u003e\\\u003cAppName\u003e\n\nor possibly:\n\n    C:\\Documents and Settings\\\u003cUser\u003e\\Application Data\\\u003cAppAuthor\u003e\\\u003cAppName\u003e\n\nfor [roaming profiles](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc766489(v=ws.10)) but that is another story.\n\nOn Linux (and other Unices) the dir, according to the [XDG spec](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) (and subject to some interpretation), is either:\n\n    ~/.config/\u003cAppName\u003e     \n\nor possibly:\n\n    ~/.local/share/\u003cAppName\u003e\n\n## Installation\n\nStable version:\n\n```r\ninstall.packages(\"rappdirs\")\n```\n\nDevelopment version:\n\n```r\npak::pak(\"r-lib/rappdirs\")\n```\n\n## Usage\n\nThis kind of thing is what rappdirs is for.\nrappdirs will help you choose an appropriate:\n\n-   user data dir (`user_data_dir()`)\n-   user config dir (`user_config_dir()`)\n-   user cache dir (`user_cache_dir()`)\n-   site data dir (`site_data_dir()`)\n-   user log dir (`user_log_dir()`)\n\nFor example, on Mac:\n\n```{r}\nlibrary(rappdirs)\nappname \u003c- \"SuperApp\"\nappauthor \u003c- \"Acme\"\nuser_config_dir(appname, appauthor)\nuser_data_dir(appname, appauthor)\nsite_data_dir(appname, appauthor)\nuser_cache_dir(appname, appauthor)\nuser_log_dir(appname, appauthor)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Frappdirs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-lib%2Frappdirs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Frappdirs/lists"}