tests/testthat/_snaps/testthat_3.1.2-unicode/format_multi.md

color

Code
  cli::num_ansi_colors()
Output
  [1] 16
Code
  has_color()
Output
  [1] TRUE
Code
  num_colors()
Output
  [1] 16
Code
  style_na("NA")
Output
  [1] "\033[31mNA\033[39m"
Code
  style_neg("-1")
Output
  [1] "\033[31m-1\033[39m"
Code
  print(xf)
Output
            x
        [3m[90m<dbl>[39m[23m
  [90m1[39m    -[31m0[39m[31m.[39m[31m00[39m[31m1[39m
  [90m2[39m     0.01 
  [90m3[39m    -[31m0[39m[31m.[39m[31m1[39m  
  [90m4[39m     1    
  [90m5[39m   -[31m10[39m    
  [90m6[39m   100    
  [90m7[39m -[31m[4m1[24m00[39m[31m0[39m    
  [90m8[39m [4m1[24m[4m0[24m000    
  [90m9[39m    [31mNA[39m    
Code
  with_options(pillar.subtle_num = TRUE, print(xf))
Output
            x
        [3m[90m<dbl>[39m[23m
  [90m1[39m    -[90m0[39m[90m.[39m[90m00[39m[31m1[39m
  [90m2[39m     [90m0[39m[90m.[39m[90m0[39m1 
  [90m3[39m    -[90m0[39m[90m.[39m[31m1[39m  
  [90m4[39m     1    
  [90m5[39m   -[31m10[39m    
  [90m6[39m   100    
  [90m7[39m -[31m[4m1[24m00[39m[90m0[39m    
  [90m8[39m [4m1[24m[4m0[24m0[90m00[39m    
  [90m9[39m    [31mNA[39m    
Code
  with_options(pillar.subtle = FALSE, print(xf))
Output
            x
        [3m<dbl>[23m
  1    -[31m0[39m[31m.[39m[31m00[39m[31m1[39m
  2     0.01 
  3    -[31m0[39m[31m.[39m[31m1[39m  
  4     1    
  5   -[31m10[39m    
  6   100    
  7 -[31m[4m1[24m00[39m[31m0[39m    
  8 [4m1[24m[4m0[24m000    
  9    [31mNA[39m    
Code
  with_options(pillar.neg = FALSE, print(xf))
Output
            x
        [3m[90m<dbl>[39m[23m
  [90m1[39m    -0.001
  [90m2[39m     0.01 
  [90m3[39m    -0.1  
  [90m4[39m     1    
  [90m5[39m   -10    
  [90m6[39m   100    
  [90m7[39m -[4m1[24m000    
  [90m8[39m [4m1[24m[4m0[24m000    
  [90m9[39m    [31mNA[39m    
Code
  with_options(pillar.subtle = FALSE, pillar.neg = FALSE, print(xf))
Output
            x
        [3m<dbl>[23m
  1    -0.001
  2     0.01 
  3    -0.1  
  4     1    
  5   -10    
  6   100    
  7 -[4m1[24m000    
  8 [4m1[24m[4m0[24m000    
  9    [31mNA[39m    
Code
  with_options(pillar.bold = TRUE, print(xf))
Output
            [1mx[22m
        [3m[90m<dbl>[39m[23m
  [90m1[39m    -[31m0[39m[31m.[39m[31m00[39m[31m1[39m
  [90m2[39m     0.01 
  [90m3[39m    -[31m0[39m[31m.[39m[31m1[39m  
  [90m4[39m     1    
  [90m5[39m   -[31m10[39m    
  [90m6[39m   100    
  [90m7[39m -[31m[4m1[24m00[39m[31m0[39m    
  [90m8[39m [4m1[24m[4m0[24m000    
  [90m9[39m    [31mNA[39m
Code
  colonnade(list(a_very_long_column_name = 0), width = 15)
Condition
  [1m[33mWarning[39m:[22m
  `colonnade()` was deprecated in pillar 1.7.0.
  Please use `tbl_format_setup()` instead.
Output
    a_very_long_…
            [3m[90m<dbl>[39m[23m
  [90m1[39m             0


Try the pillar package in your browser

Any scripts or data that you put into this service are public.

pillar documentation built on March 31, 2023, 10:19 p.m.