{"id":17786048,"url":"https://github.com/r-world-devs/gitstats","last_synced_at":"2025-03-16T05:31:06.708Z","repository":{"id":65312224,"uuid":"586903986","full_name":"r-world-devs/GitStats","owner":"r-world-devs","description":"An R package to get statistics from GitHub and GitLab.","archived":false,"fork":false,"pushed_at":"2024-10-29T08:05:05.000Z","size":17808,"stargazers_count":3,"open_issues_count":87,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T09:23:08.053Z","etag":null,"topics":["git","github","gitlab","metadata","r"],"latest_commit_sha":null,"homepage":"https://r-world-devs.github.io/GitStats/","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-world-devs.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","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":"2023-01-09T14:02:20.000Z","updated_at":"2024-10-29T07:42:23.000Z","dependencies_parsed_at":"2023-12-19T10:47:12.123Z","dependency_job_id":"6b12a5b3-0564-48e1-934d-be135579f866","html_url":"https://github.com/r-world-devs/GitStats","commit_stats":{"total_commits":750,"total_committers":6,"mean_commits":125.0,"dds":"0.33066666666666666","last_synced_commit":"45a26d6cf3b7b5dda72b6097529b919eaffac1d0"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-world-devs%2FGitStats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-world-devs%2FGitStats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-world-devs%2FGitStats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-world-devs%2FGitStats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-world-devs","download_url":"https://codeload.github.com/r-world-devs/GitStats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"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":["git","github","gitlab","metadata","r"],"created_at":"2024-10-27T09:04:15.030Z","updated_at":"2025-03-16T05:31:06.703Z","avatar_url":"https://github.com/r-world-devs.png","language":"R","funding_links":[],"categories":[],"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  message = FALSE,\n  warning = FALSE,\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\"\n)\n```\n\n# GitStats \u003cimg src=\"man/figures/GitStats_logo.png\" align=\"right\" height=\"138\" style=\"float:right; height:138px;\"/\u003e\n\n\u003c!-- badges: start --\u003e\n[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n[![R-CMD-check](https://github.com/r-world-devs/GitStats/workflows/R-CMD-check/badge.svg)](https://github.com/r-world-devs/GitStats/actions)\n[![Codecov test coverage](https://codecov.io/gh/r-world-devs/GitStats/branch/devel/graph/badge.svg)](https://app.codecov.io/gh/r-world-devs/GitStats?branch=devel)\n\u003c!-- badges: end --\u003e\n\nWith GitStats you can pull git data in a uniform way (table format) from GitHub and GitLab. For the time-being you can get data on:\n\n* repositories,\n* commits,\n* users,\n* release logs,\n* text files content,\n* R package usage.\n\n## Installation\n\nFrom CRAN:\n\n```r\ninstall.packages(\"GitStats\")\n```\n\nFrom GitHub:\n\n```r\ndevtools::install_github(\"r-world-devs/GitStats\")\n```\n\n## Examples:\n\nSetup your `GitStats`:\n\n```{r}\nlibrary(GitStats)\n\ngit_stats \u003c- create_gitstats() |\u003e\n  set_gitlab_host(\n    repos = \"mbtests/gitstatstesting\"\n  ) |\u003e\n  set_github_host(\n    orgs = \"r-world-devs\",\n    repos = \"openpharma/DataFakeR\"\n  ) \n```\n\nGet commits:\n\n```{r}\ncommits \u003c- git_stats |\u003e\n  get_commits(\n    since = \"2022-01-01\"\n  )\n\ncommits\n\ncommits |\u003e\n  get_commits_stats(\n    time_aggregation = \"month\",\n    group_var = author\n  )\n```\n\nGet repositories with specific code:\n\n```{r}\ngit_stats |\u003e\n  get_repos(\n    with_code = \"shiny\",\n    add_contributors = FALSE\n  )\n```\n\nGet files:\n\n```{r}\ngit_stats |\u003e\n  get_files(\n    pattern = \"\\\\.md\",\n    depth = 2L\n  )\n```\n\nGet package usage:\n\n```{r}\ngit_stats |\u003e\n  get_R_package_usage(\n    packages = c(\"shiny\", \"purrr\"),\n    split_output = TRUE\n  )\n```\n\nPrint `GitStats` to see what it stores:\n\n```{r}\ngit_stats\n```\n\n## Acknowledgement\n\nSpecial thanks to [James Black](https://github.com/epijim), [Karolina Marcinkowska](https://github.com/marcinkowskak), [Kamil Koziej](https://github.com/Cotau), [Matt Secrest](https://github.com/mattsecrest), [Krystian Igras](https://github.com/krystian8207), [Kamil Wais](https://github.com/kalimu), [Adam Forys](https://github.com/galachad) - for the support in the package development.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-world-devs%2Fgitstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-world-devs%2Fgitstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-world-devs%2Fgitstats/lists"}