Collate code and repository data for a local R package.
Description
This forms part of the data collated by the main repometrics_datafunction, along with detailed data on individual contributors extracted by the repometrics_data_user function.
Usage
repometrics_data_repo(path, date_interval = "month", num_cores = -1L)
Arguments
path: Path to local repository containing an R package.date_interval: Interval at which to analyse package statistics, with options of “day”, “week”, “month”, or “year”. The last commit for each period is chosen.num_cores: Number of cores to use in multi-core processing. Has no effect on Windows operating systems, on which calculations are always single-core only. Negative values are subtracted from number of available cores, determined asparallel::detectCores(), so default ofnum_cores = -1LusesdetectCores() - 1L. Positive values use precisely that number, restricted to maximum available cores, and a value of zero will use all available cores.
Seealso
Other data:
[repo_pkgstats_history](repo_pkgstats_history)(),
[repometrics_data](repometrics_data)(),
[repometrics_data_user](repometrics_data_user)()
Concept
data
Value
A list of two items:
“pkgstats” Containing summary data from apply
pkgstatsroutines across the git history of the repository.“rm” Containing data used to derive “CHAOSS metrics”, primarily from GitHub data.