tax_glom()
behaves incorrectly if a tax table or matrix named new_tax_mat
exists
#31
Labels
bug
Something isn't working
When the object
new_tax_mat
exists in the user's environment thentax_glom()
will use it to try to overwrite the correct tax table. Ifnew_tax_mat
is a matrix ortax_table
and has at least some of the same taxa names as the new merged taxa, then there will not be an error and the resulting tax table will be overwritten; worse, the set of taxa may be pruned to the intersection.Created on 2020-05-28 by the reprex package (v0.3.0)
The bug is due to this line in
merge_taxa_vec()
,speedyseq/R/merge_taxa_vec.R
Line 92 in 6600f38
As is, the call to
exists()
will returnTRUE
ifnew_tax_mat
exists in the environment outside of the function.The text was updated successfully, but these errors were encountered: