GitStats 2.1.1
This is a patch release which introduces some improvements in get_R_package_usage()
on speed and possibility to pull at once data on multiple R packages, new get_storage()
function and some fixes for checking token scopes and setting hosts.
Features:
- Optimized
get_R_package_usage()
function:- it is now possible to pass a vector of packages names (new
packages
parameter replacing oldpackage_name
) (#494), - on the other hand, output of the function has been limited to contain only most necessary data (removing all repository stats), making thus process of obtaining package usage faster (#474).
- new
split_output
parameter has been added - when set toTRUE
alist
withtibbles
(every element of thelist
for every package) instead of onetibble
is returned.
- it is now possible to pass a vector of packages names (new
- Added possibility to get repositories for individual users with
get_repos()
(#492). Earlier this was only possible for GitHub organizations and GitLab groups. - Added new
get_storage()
function to retrieve data fromGitStats
object - whole or particular datasets (e.g.commits
,repositories
orR_package_usage
) (#509).
Fixes:
- Fixed getting large search responses for GitHub (#491).
- Fixed checking token scopes (#501). If token scopes are insufficient error is returned and
GitHost
is not passed toGitStats
. This also applies to situation whenGitStats
looks for default tokens (not defined by user). Earlier, if tests for token failed, an empty token was passed andGitStats
was created, which was misleading for the user. - It is now possible to pass public GitHub host name (
github.com
orhttps://github.com
) toset_github_host()
(#475). - It is also possible to pass hosts in more flexible way than before (e.g.
{host_url}
,http://{host_url}
orhttps://{host_url}
) tohost
parameter in `set_*_host() function (#399).