sfirke / packagemetrics

A Package for Helping You Choose Which Package to Use
Other
134 stars 6 forks source link

problem with mutate #59

Closed verajosemanuel closed 3 years ago

verajosemanuel commented 3 years ago
packages_list <- c("renv","packagemetrics")
packagemetrics::package_list_metrics(packages_list)

Error: Problem with `mutate()` input `action`.
x Input `action` can't be recycled to size 2.
i Input `action` is `c("watchers", "stars", "forks")`.
i Input `action` must be size 2 or 1, not 3.
timtreis commented 3 years ago

Same error

image

sfirke commented 3 years ago

Thanks for reporting this! It appears that now GitHub does not show you the "watchers" count if you're not logged in. So the scraper is only able to get the counts of stars and forks. I've adjusted that code accordingly. If you are able to reinstall packagemetrics from GitHub and re-try, I'd appreciate it. And if I broke anything else or did not solve this, please open another issue.