sfirke / packagemetrics

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

Always return number of contributors #23

Closed csgillespie closed 7 years ago

csgillespie commented 7 years ago

Not all packages return the base GitHub url, e.g. the URL for https://cran.r-project.org/web/packages/tsDyn/index.html is http://github.com/MatthieuStigler/tsDyn/wiki

This causes get_num_contributors() to fail.

You could recover the canonical URL, i.e. remove wiki but this would be wrong in a few cases where more than one package lives in the same github repo. Options:

sfirke commented 7 years ago

Thanks also for this fix, Colin. And for pointing out why recovering the canonical URL might lead to misleading results.