mczyzj / pestr

Tools to use EPPO Data Services from R
Other
6 stars 0 forks source link

The distribution file for EPPO code LASPMO was not found. Error in distri_lists[[i]] : subscript out of limit #25

Closed giovabubi closed 7 months ago

giovabubi commented 7 months ago

Hello! when I run the following R code pest_distri <- pestr::eppo_tabletools_distri(pests_names_tables) I get the following error:

The distribution file for EPPO code LASPMO was not found.
Error in distri_lists[[i]]: subscript out of limit.

And this is for all names I search. In the past, I used successfully this code. Has something changed? Is distribution data not yet available?

mczyzj commented 7 months ago

@giovabubi hey, thank you for using the package:) You are right, EPPO made some changes to the distribution files structure. I already covered it in development version of the package, which is not yet published on CRAN. If you install the development version of the package it should work fine:

# install.packages("devtools")
devtools::install_github("mczyzj/pestr", force = TRUE)

Please, let me know if that solved the problem.

Good luck!

giovabubi commented 7 months ago

Now, it works. Thank you so much!

mczyzj commented 7 months ago

@giovabubi happy to help :) if there is anything else, please open an issue and I will do my best to make things work :)