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

Error using `flip` #8

Open njtierney opened 7 years ago

njtierney commented 7 years ago

Hey Mark!

Really stoked to see how quickly this project is moving. Very cool indeed.

I tried to replicate the command from the README but I got this error:

library(flipper)

flip("missing data analysis")
#> The first textsearch takes a short while to set up; subsequent calls will be much quicker
#> Error in combn(length(posi), 2): n < m

I might be missing something, but just thought I'd flag if that's helpful?

Keep doing the awesome work, this is so great already!

mpadge commented 7 years ago

thanks nick! yeah, i still need to put in controls for when < 2 terms are matched. Interesting thing is that phrase ought not lead to that error. The final result is randomly selected from best matches, so not directly repeatable, but that phrase matches all 3 tokens ("miss", "data", "analysi"), so should not generate that error. De-bugging other people's error on functions that are never directly repeatable is going to be a bit of a headache ..