ryscott5 / eparTextTools

BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

getCitations() is vulnerable to changes in searchWordsPubMed() #17

Open Synaps3 opened 7 years ago

Synaps3 commented 7 years ago

I just noticed this fault in my code...since getCitations is dependent on an input object from searchWordsPubMed, changing the order of results that searchWordsPubMed produces would silently break getCitations because it looks for results[6] in the output of the first function.

I need to go back and either get it to pull out the ID using $ID or something like that...or integrate getCitations into searchwordspubmed() as an option, since the two functions are never meant to be run separately.

Synaps3 commented 7 years ago

This is a potential improvement