njtierney / flipper

Make it easy to flip through R packages from CRAN, Bioconductor, and GitHub
https://docs.ropensci.org/flipper
13 stars 1 forks source link

deal with empty word matches #13

Open mpadge opened 6 years ago

mpadge commented 6 years ago
> flip("complete bull shite")
Error in print_pkg(packages$pkg_names[1]) : R Package NA does not exist
> flip("utter shite")
Error in combn(length(posi), 2) : n < m

The first error because one token is found, but the others aren't; the second error because no tokens are found at all. Discovered via #12, and cross-ref #14