{"id":14068904,"url":"https://github.com/krlmlr/pkgfiles","last_synced_at":"2025-07-30T04:32:42.206Z","repository":{"id":66206633,"uuid":"187652306","full_name":"krlmlr/pkgfiles","owner":"krlmlr","description":"Statistics and Tools for Files in Your R Project","archived":true,"fork":false,"pushed_at":"2019-05-20T14:25:45.000Z","size":34,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-04T09:40:06.025Z","etag":null,"topics":["file-classifier","r"],"latest_commit_sha":null,"homepage":"https://krlmlr.github.io/pkgfiles","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krlmlr.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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":"2019-05-20T14:05:20.000Z","updated_at":"2023-01-28T15:36:11.000Z","dependencies_parsed_at":"2023-06-29T08:15:11.980Z","dependency_job_id":null,"html_url":"https://github.com/krlmlr/pkgfiles","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/krlmlr/pkgfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krlmlr%2Fpkgfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krlmlr%2Fpkgfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krlmlr%2Fpkgfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krlmlr%2Fpkgfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krlmlr","download_url":"https://codeload.github.com/krlmlr/pkgfiles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krlmlr%2Fpkgfiles/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267809582,"owners_count":24147498,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["file-classifier","r"],"created_at":"2024-08-13T07:06:28.540Z","updated_at":"2025-07-30T04:32:41.937Z","avatar_url":"https://github.com/krlmlr.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: \n  github_document:\n    html_preview: false\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# pkgfiles\n\n\u003c!-- badges: start --\u003e\n[![Travis build status](https://travis-ci.org/krlmlr/pkgfiles.svg?branch=master)](https://travis-ci.org/krlmlr/pkgfiles)\n[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/krlmlr/pkgfiles?branch=master\u0026svg=true)](https://ci.appveyor.com/project/krlmlr/pkgfiles)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n[![CRAN status](https://www.r-pkg.org/badges/version/pkgfiles)](https://cran.r-project.org/package=pkgfiles)\n\u003c!-- badges: end --\u003e\n\nThe goal of pkgfiles is to enumerate and classify all files in an R package project. This is mostly useful for other packages that iterate over all files of a specific kind in an R package.\n\n## Installation\n\nOnce released, you can install the released version of pkgfiles from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"pkgfiles\")\n```\n\nFor now, install from GitHub with\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"krlmlr/pkgfiles\")\n```\n\n## Example\n\nThe `pf_get()` function enumerates and classifies all files in the current project.\n\n```{r example}\nlibrary(pkgfiles)\npf_get()\n```\n\nUnder the hood, the returned object is a tibble that contains the return from a `fs::dir_info()` call augmented by a `class` column:\n\n```{r}\ntibble::as_tibble(pf_get())\n```\n\nThe classification is based on regular expressions for the project-relative path of the files. This list is extensible but the existing entries should rarely change.\n\n```{r}\npkgfiles:::classification\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrlmlr%2Fpkgfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrlmlr%2Fpkgfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrlmlr%2Fpkgfiles/lists"}