Skip to content

Commit

Permalink
fix #59 - GitHub appears to no longer list watcher counts if not logg…
Browse files Browse the repository at this point in the history
…ed in
  • Loading branch information
sfirke committed Jun 15, 2021
1 parent 59dd60e commit fd1774a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Remotes: lshep/stackr
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.0
RoxygenNote: 7.1.1
Suggests: knitr,
rmarkdown
VignetteBuilder: knitr
2 changes: 1 addition & 1 deletion R/scrape_github_url.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ get_social_stats_from_html <- function(page_html){
purrr::map_df(~as.list(.)) %>%
dplyr::select(`aria-label`) %>%
dplyr::mutate(github_social = stringr::str_extract(`aria-label`, "[[:digit:]]+"),
action = c("watchers", "stars", "forks")) %>%
action = c("stars", "forks")) %>%
dplyr::select(action, github_social) %>%
dplyr::mutate(github_social = as.numeric(github_social)) %>%
tidyr::spread(action, github_social)
Expand Down
10 changes: 8 additions & 2 deletions man/get_pkgs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/packagemetrics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/table_packages.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd1774a

Please sign in to comment.