With 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:
From CRAN:
install.packages("GitStats")
Or development version:
::install_github("r-world-devs/GitStats") devtools
On how to use GitStats, refer to the documentation.
Special thanks to James Black, Karolina Marcinkowska, Kamil Koziej, Matt Secrest, Krystian Igras, Kamil Wais, Adam Forys - for the support in the package development.