Open katier239 opened 3 weeks ago
Hey @katier239 ,
Thanks for your interest in the package :) Some time ago EPPO changed the structure of the csv files. I already adjusted the code but didn't send it to CRAN for update. So for the time being if you could just install the github version I would be greatful. Probably I will send CRAN update within next two weeks, so most likely the official version will be available before October.
If there is anything else, please do not hesitate to report.
All the best, Michal
Hello,
Thanks for the cool package :)
I've installed the most recent version (0.8.2) and am encountering an error when trying to retrieve pest distributions. I was able to retrieve other metadata (e.g. taxonomy, hosts etc) without problems, but when I try to get distributions, the following error arises:
It appears that the eppocodes and URLs are being generated as expected:
When I do a manual search on the EPPO website, the data is there. When I paste the above URLs into a browser window, the files download and contain data. However, the column format of the EPPO file appears different to the expected by pestr - in addition to the columns "continent", "country", "state","country code", "state code", "Status", there are now also several other unnamed columns.
I think this is causing eppo_csv_download to throw an error at this point:
When I run the preceding code in debug mode it seems to work ok:
Lastly, I noticed that EPPO seems to have scrambled the column order - 'continent' is the last column name, but the continent data is in the first column.
Thanks!