Open jeroen opened 3 months ago
Sadly it seems this is not exposed via the GH API.
Looking at chrome devtools it seems to be calling a special "blackbird_count" api which is protected from programmable usage.
https://github.com/search/blackbird_count?saved_searches=&q=%22library%28ggplot2%29%22+path%3A*.R
Github code search seems to have gotten better.
Maybe we can use the search to find scripts with
library(pkg)
as a measure of end-user usage. This may help boost the rank for packages that are only used by end-users, but not much depended on by other packages.For example: https://github.com/search?q=%22library%28jsonlite%29%22+path%3A*.R&type=code&query=%22library%28jsonlite%29%22+path%3A*.R
Also the goal of this measure is not to be exact, but proxy measure of end-user usage. So I think only looking at
library()
is probably enough.