Examples for 'diffobj::[<-,PaletteOfStyles-method'


Extract/Replace a Style Class or Object from PaletteOfStyles

Aliases: [<-,PaletteOfStyles-method [,PaletteOfStyles,ANY,ANY,ANY-method [[,PaletteOfStyles-method

Keywords:

### ** Examples

pal <- PaletteOfStyles()
pal[["ansi256", "light", "rgb"]]
Class "StyleAnsi256LightRgb" [package "diffobj"]

Slots:
                                                                       
Name:          funs         text      summary    nchar.fun         wrap
Class:    StyleFuns    StyleText StyleSummary          ANY      logical
                                                                       
Name:           pad    finalizer        pager       na.sub    blank.sub
Class:      logical     function        Pager    character    character
                   
Name:    disp.width
Class:      integer

Extends: 
Class "StyleAnsi", directly
Class "Light", directly
Class "Rgb", directly
Class "StyleRaw", by class "StyleAnsi", distance 2
Class "Ansi", by class "StyleAnsi", distance 2
Class "Style", by class "StyleAnsi", distance 3
Class "Raw", by class "StyleAnsi", distance 3
pal["ansi256", "light", ]
format: ansi256, brightness: light, color.mode: rgb

  Object of class `StyleAnsi256LightRgb`:
  
  < diffobj:::.mx1   > diffobj:::.mx2 
  @@ 6,4 @@          @@ 6,3 @@        
  ~       [,1] [,2]  ~       [,1] [,2]
     [5,]    5   30     [5,]    5   30
  <  [6,]    6   31  >  [6,]   99   31
  <  [7,]    7   32  ~                
     [8,]    8   33     [7,]    8   33
  ... omitted 4/10 lines, 1/2 hunks   
  
  Default bg and fg colors forced to appropriate colors
  for scheme; this does not happen in actual use.

format: ansi256, brightness: light, color.mode: yb

  Object of class `StyleAnsi256LightYb`:
  
  < diffobj:::.mx1   > diffobj:::.mx2 
  @@ 6,4 @@          @@ 6,3 @@        
  ~       [,1] [,2]  ~       [,1] [,2]
     [5,]    5   30     [5,]    5   30
  <  [6,]    6   31  >  [6,]   99   31
  <  [7,]    7   32  ~                
     [8,]    8   33     [7,]    8   33
  ... omitted 4/10 lines, 1/2 hunks   
  
  Default bg and fg colors forced to appropriate colors
  for scheme; this does not happen in actual use.
pal["ansi256", "light", "rgb"] <- list(StyleAnsi8NeutralRgb())

[Package diffobj version 0.3.5 Index]