david-barnett / microViz

R package for microbiome data visualization and statistics. Uses phyloseq, vegan and the tidyverse. Docker image available.
https://david-barnett.github.io/microViz/
GNU General Public License v3.0
106 stars 11 forks source link

tax_rename pad_digits doesn't allow numeric #68

Closed david-barnett closed 2 years ago

david-barnett commented 2 years ago

ps |> tax_rename(rank = "Genus", pad_digits = 2) should work but fails with

pad_digits must be 'auto', 'max', or a number from 0 to 10

temporary workaround is to pass a character, which surprisingly works as .. expected ps |> tax_rename(rank = "Genus", pad_digits = "2")

fix: silly internal class check should be fixed

david-barnett commented 2 years ago

fixed in 0.9.5