dwww Home | Show directory contents | Find package

# 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
            <dbl>
      1    -0.001
      2     0.01 
      3    -0.1  
      4     1    
      5   -10    
      6   100    
      7 -1000    
      8 10000    
      9    NA    
    Code
      with_options(pillar.subtle_num = TRUE, print(xf))
    Output
                x
            <dbl>
      1    -0.001
      2     0.01 
      3    -0.1  
      4     1    
      5   -10    
      6   100    
      7 -1000    
      8 10000    
      9    NA    
    Code
      with_options(pillar.subtle = FALSE, print(xf))
    Output
                x
            <dbl>
      1    -0.001
      2     0.01 
      3    -0.1  
      4     1    
      5   -10    
      6   100    
      7 -1000    
      8 10000    
      9    NA    
    Code
      with_options(pillar.neg = FALSE, print(xf))
    Output
                x
            <dbl>
      1    -0.001
      2     0.01 
      3    -0.1  
      4     1    
      5   -10    
      6   100    
      7 -1000    
      8 10000    
      9    NA    
    Code
      with_options(pillar.subtle = FALSE, pillar.neg = FALSE, print(xf))
    Output
                x
            <dbl>
      1    -0.001
      2     0.01 
      3    -0.1  
      4     1    
      5   -10    
      6   100    
      7 -1000    
      8 10000    
      9    NA    
    Code
      with_options(pillar.bold = TRUE, print(xf))
    Output
                x
            <dbl>
      1    -0.001
      2     0.01 
      3    -0.1  
      4     1    
      5   -10    
      6   100    
      7 -1000    
      8 10000    
      9    NA    

---

    Code
      colonnade(list(a_very_long_column_name = 0), width = 15)
    Warning <lifecycle_warning_deprecated>
      `colonnade()` was deprecated in pillar 1.7.0.
      Please use `tbl_format_setup()` instead.
    Output
        a_very_long_~
                <dbl>
      1             0

Generated by dwww version 1.15 on Sat May 18 06:39:27 CEST 2024.