ghGetView: Function get repositories statistic.

Description Usage Arguments Details Value Author(s) Examples

View source: R/ghGetView.R

Description

This function get repositories statistic by views and unique views by last 14 days from GitHub API.

Usage

1
ghGetView(user = NULL, repos = NULL, token = NULL)

Arguments

user

Your GitHun login

repos

Repository alias

token

Your GitHub API token, you can get him this link - https://github.com/settings/tokens, for more ditail go this link https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization

Details

GitHub API dicumentation - https://developer.github.com/v3/

Value

Data frame with data by last 14 days:

timestamp

statistic date, date

views

count of total views, integer

uniques

count of unique views, integer

Author(s)

Alexey Seleznev

Examples

1
github_stat <- ghGetView(user = "selesnow", repos = "ryandexdirect",  token = "abcde12345")

selesnow/rGitHub documentation built on Aug. 16, 2021, 3:16 a.m.