I\'ve created a new S3 class to print percentages with number of digits using vctrs, like explained in https://vctrs.r-lib.org/articles/s3-vector.html . It works well when I