ropensci / wikitaxa

taxonomy data from Wikipedia/Wikidata/Wikispecies

Home Page:https://docs.ropensci.org/wikitaxa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fxn wt_wikipedia does not separate synonyms whith <BR> tag

vijaybarve opened this issue · comments

In few Wikipedia pages the synonyms are separated by <br> tag rather than a * the function returns them as single string. i.e. example <br>

> wt_wikipedia("Stereum hirsutum")$synonym
[1] "Helvella acaulis Pers. (1778)Auricularia reflexa Bull. (1786)Thelephora hirsuta Willd. (1787)Boletus auriformis Bolton (1788)Auricularia aurantiaca Schumach. (1803)Thelephora reflexa (Bull.) Lam. & DC. (1805)Stereum hirsutum var. cristulatum Quél. (1872)Stereum reflexum (Bull.) Sacc. (1916)"

works well example *

> wt_wikipedia("Russula brevipes")$synonyms
[1] "Russula brevipes var. acrior Shaffer (1964)[1]"   
[2] "Russula brevipes var. megaspora Shaffer (1964)[1]"

thanks, reinstall and try again.

can you test a bunch of examples and see if you find any more that don't work when they should work? that would be really helpful

Works now.

I am using it right now, and would let you know if any more issues I come across.

thanks, glad it works