tests/testthat/_snaps/heatmap.md

heat_column

Code
  cat(cli_table(mat), sep = "\n")
Output
  ┌────┬───┬─────┬───┬────┬─────┬─────┬──┬──┬────┬────┐
  │ mpg│cyl│ disp│ hp│drat│ wt  │ qsec│vs│am│gear│carb│
  ├────┼───┼─────┼───┼────┼─────┼─────┼──┼──┼────┼────┤
  │ [41m21[49m │ 6 │160.0│[41m110[49m│3.90│2.620│16.46│ 0│ 1│ 4  │ [41m4[49m  │
  │ [41m21[49m │ 6 │160.0│[41m110[49m│3.90│2.875│17.02│ 0│ 1│ 4  │ [41m4[49m  │
  │[41m22.8[49m│ 4 │108.0│ [42m93[49m│3.85│2.320│18.61│ 1│ 1│ 4  │ [44m1[49m  │
  │[41m21.4[49m│ 6 │258.0│[41m110[49m│3.08│3.215│19.44│ 1│ 0│ 3  │ [44m1[49m  │
  │[42m18.7[49m│ 8 │360.0│[41m175[49m│3.15│3.440│17.02│ 0│ 0│ 3  │ [44m2[49m  │
  │[42m18.1[49m│ 6 │225.0│[40m105[49m│2.76│3.460│20.22│ 1│ 0│ 3  │ [44m1[49m  │
  │[42m14.3[49m│ 8 │360.0│[41m245[49m│3.21│3.570│15.84│ 0│ 0│ 3  │ [41m4[49m  │
  │[41m24.4[49m│ 4 │146.7│ [42m62[49m│3.69│3.190│20.00│ 1│ 0│ 4  │ [44m2[49m  │
  │[41m22.8[49m│ 4 │140.8│ [42m95[49m│3.92│3.150│22.90│ 1│ 0│ 4  │ [44m2[49m  │
  │[42m19.2[49m│ 6 │167.6│[41m123[49m│3.92│3.440│18.30│ 1│ 0│ 4  │ [41m4[49m  │
  └────┴───┴─────┴───┴────┴─────┴─────┴──┴──┴────┴────┘

heatmap_nums

Code
  heated
Output
  <cli_ansi_string>
  [1] [42m0.1[49m 
  [2] [41m100[49m 
  [3] [42m-2.5[49m
  [4] [42m20[49m  
  [5] [41m78.2[49m
  [6] NA

cell_bg

Code
  cat(x)
Output
  [41mred[49m
Code
  cat(x, sep = "")
Output
  [42m1[49m[42m2[49m[42m3[49m[42m4[49m[41m5[49m[41m6[49m[41m7[49m[41m8[49m


Try the clitable package in your browser

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

clitable documentation built on Nov. 5, 2025, 5:27 p.m.