Old Github boot values are deprecated and seem to no longer work. You can get download counts from releases, but this requires a bit of manipulation:
library(jsonlite) library(httr) url <- "https://api.github.com/repos/allenluce/mmap-object/releases" response <- GET(url) json <- content(response, "text") json <- fromJSON(json) print(Reduce("+", lapply(json$assets, function(x) sum(x$download_count))))
There are some caveats:
- There must be releases in the repo.
- There must be files in releases
- There is no API to get the number of people who cloned your repo.
Github allows you to count the number of released files that have been downloaded, but more on that. The google-services repo you are using as an example has neither releases nor files!
source share