[Feature Request] Pretty-print named vectors?
Hello,
I'd like to request a function similar to `pretty_print_code()` to allow the printing of named vectors.
For example, in this snippet
``` r
x<-seq(0.001, 0.020, by = 0.001)
names(x) <- paste0("idx", 1:20)
x
#> idx1 idx2 idx3 idx4 idx5 idx6 idx7 idx8 idx9 idx10 idx11 idx12 idx13
#> 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.010 0.011 0.012 0.013
#> idx14 idx15 idx16 idx17 idx18 idx19 idx20
#> 0.014 0.015 0.016 0.017 0.018 0.019 0.020
```
<sup>Created on 2025-12-08 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup>
I find it quite hard to separate the names of the vector from the vector values itself. A color coded way to differentiate the two would be greatly appreciated.
0 条评论