sfirke / packagemetrics

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

Earlier error message for package not on CRAN #41

Closed harrismcgehee closed 6 years ago

harrismcgehee commented 6 years ago

Is there a way to move up the checking for CRAN status to avoid the less helpful error message?

Expected output

> packagemetrics::package_list_metrics(list("stackr"))
Package stackr not in CRAN.  Only supply packages that exists in CRAN`

Actual Output

> packagemetrics::package_list_metrics(list("stackr"))
Error in data.frame(..., check.names = FALSE) : 
  arguments imply differing number of rows: 0, 1
> packagemetrics::getGitHub(list("stackr"))
Error in inCran(packages, forget) : 
  Package stackr not in CRAN.  Only supply packages that exists in CRAN

using: packagemetrics 0.0.1.9001 2018-02-21