GioBo / TR8

R package for downloading functional traits data for plant species
20 stars 7 forks source link

Non-unique value when setting 'row.names' for Olea europaea #73

Open kang37 opened 2 years ago

kang37 commented 2 years ago

I tried to look up flower-related traits of Olea europaea, however, for the trait "flower_colour_fr", an error was raised. Here is the code and outcome.

tr8(species_list = "Olea europaea", download_list = "flower_colour_fr",
     allow_persistent = TRUE)

The outcome is:

Error in `.rowNamesDF<-`(x, value = value) : 
  duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique value when setting 'row.names': ‘Olea europaea’ 

On the other hand, though no value, there is no problem for other traits:

tr8(species_list = "Olea europaea", download_list = "Flower.Color",
     allow_persistent = TRUE)
# the outcome is: 
#               Flower.Color
# Olea europaea         <NA>
GioBo commented 2 years ago

Thanks for reporting the issue: it should have been fixed now in the current 'master' branch here. Could you please try again using the github devel version (as explained on the main page) and let me know if it works for you? If so, I'll submit the revised version to CRAN. Thanks.