{"id":13858388,"url":"https://github.com/r-lib/here","last_synced_at":"2025-05-14T10:11:36.211Z","repository":{"id":43317666,"uuid":"63702429","full_name":"r-lib/here","owner":"r-lib","description":"A simpler way to find your files","archived":false,"fork":false,"pushed_at":"2025-05-04T02:28:54.000Z","size":1837,"stargazers_count":419,"open_issues_count":27,"forks_count":44,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-14T05:33:27.211Z","etag":null,"topics":["project","r"],"latest_commit_sha":null,"homepage":"https://here.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":"NEWS.md","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,"zenodo":null}},"created_at":"2016-07-19T14:47:19.000Z","updated_at":"2025-05-13T19:23:46.000Z","dependencies_parsed_at":"2023-01-31T10:45:42.289Z","dependency_job_id":"7691e0c9-d2ff-4b1c-a6c6-0ae93423503a","html_url":"https://github.com/r-lib/here","commit_stats":{"total_commits":376,"total_committers":17,"mean_commits":22.11764705882353,"dds":"0.35106382978723405","last_synced_commit":"4b3ab9ae681e3be1496fb63e83ade98c72d77502"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fhere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fhere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fhere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fhere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-lib","download_url":"https://codeload.github.com/r-lib/here/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254115126,"owners_count":22017317,"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":["project","r"],"created_at":"2024-08-05T03:02:06.905Z","updated_at":"2025-05-14T10:11:36.173Z","avatar_url":"https://github.com/r-lib.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: downlit::readme_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 = \"README-\"\n)\n\npkgload::load_all()\n```\n\n# here\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)\n[![rcc](https://github.com/r-lib/here/workflows/rcc/badge.svg)](https://github.com/r-lib/here/actions)\n[![CRAN status](https://www.r-pkg.org/badges/version/here)](https://CRAN.R-project.org/package=here)\n[![Codecov test coverage](https://codecov.io/gh/r-lib/here/branch/main/graph/badge.svg)](https://codecov.io/gh/r-lib/here?branch=main)\n\u003c!-- badges: end --\u003e\n\nThe goal of the here package is to enable easy file referencing in [project-oriented workflows](https://rstats.wtf/projects.html).\nIn contrast to using `setwd()`, which is fragile and dependent on the way you organize your files, here uses the top-level directory of a project to easily build paths to files.\n\n## Installation\n\nInstall the released version of here from CRAN:\n```{r, eval = FALSE}\ninstall.packages(\"here\")\n```\n\n\n## Usage\n\nThe here package creates paths relative to the top-level directory. The package displays the top-level of the current project on load or any time you call `here()`:\n\n```{r}\nhere::i_am(\"README.Rmd\")\nhere()\n```\n\nYou can build a path relative to the top-level directory in order to read or write a file:\n\n```{r}\nhere(\"inst\", \"demo-project\", \"data\", \"penguins.csv\")\nreadr::write_csv(palmerpenguins::penguins, here(\"inst\", \"demo-project\", \"data\", \"penguins.csv\"))\n```\n\nThese relative paths work regardless of where the associated source file lives inside your project, like analysis projects with data and reports in different subdirectories.\nSee the included [demo project](https://github.com/r-lib/here/tree/main/inst/demo-project) for an example.\n\n![](https://raw.githubusercontent.com/allisonhorst/stats-illustrations/master/rstats-artwork/here.png)\n*Illustration by [Allison Horst](https://github.com/allisonhorst)*\n\n---\n\n## Code of Conduct\n\nPlease note that the here project is released with a [Contributor Code of Conduct](https://here.r-lib.org/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-lib%2Fhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fhere/lists"}