Closed johnbaums closed 9 years ago
Thanks, well spotted, fixed in v1.17. I hadn't previously seen taxa with that sort of improper classificaton. For those taxa, the returned classification is just a string, not a data.frame. I've avoided the error, but it does mean that the returned result$classification
object is just a string, not a data.frame as it is for taxa with proper classifications. But I don't see any easy way of fixing this at the R end, it would require the underlying ALA taxonomic information to be corrected.
Nice one, thanks for the explanation.
On Wednesday, 27 May 2015, Ben Raymond notifications@github.com wrote:
Thanks, well spotted, fixed in v1.17. I hadn't previously seen taxa with that sort of improper classificaton. For those taxa, the returned classification is just a string, not a data.frame. I've avoided the error, but it does mean that the returned result$classification object is just a string, not a data.frame as it is for taxa with proper classifications. But I don't see any easy way of fixing this at the R end, it would require the underlying ALA taxonomic information to be corrected.
— Reply to this email directly or view it on GitHub https://github.com/AtlasOfLivingAustralia/ALA4R/issues/11#issuecomment-105743331 .
Minor update in v1.18: the result$classification
object in these cases will now be a data.frame (though with only one column and one row). Note that this change may affect other elements of the result
object that were previously single-element string or numeric, because they will now also be left as single-element data.frames.
For some taxa (maybe largely constrained to those without "proper" guids?),
species_info
fails to return the record.e.g. for http://bie.ala.org.au/ws/species/ALA_Caladenia_cardiochila
Similarly for ALA_Pterostylis_squamata.
Seems that in
species_info
,out[[k]] = out[[k]][, tempcols]
needs to beout[[k]] = out[[k]][, tempcols, drop=FALSE]
to accommodate these, since e.g.family
is the only field present in$classification
.