brodieG / unitizer

Easy R Unit Tests
Other
39 stars 7 forks source link

options(warn=2) doesn't error on warning under unitizer #268

Closed brodieG closed 3 years ago

brodieG commented 4 years ago

This was typed at the unitizer prompt:

unitizer> options(warn=2)
unitizer> cbind(old = cols, new = svgchop:::proc_color(cols))
Warning in not.color & !none :
  longer object length is not a multiple of shorter object length
Warning in colors[not.hex] <- `*vtmp*` :
  number of items to replace is not a multiple of replacement length
Warning in !not.color & !none :
  longer object length is not a multiple of shorter object length
Warning in !not.color & !none :
  longer object length is not a multiple of shorter object length
Warning in colors[not.hex] <- `*vtmp*` :
  number of items to replace is not a multiple of replacement length
     old                 new      
[1,] "  rgb(255 , 0, 3)" NA       
[2,] "none"              "none"   
[3,] "transparent"       "none"   
[4,] "#1Bc"              "#11BBcc"
[5,] "#FF0011"           "#FF0011"
[6,] "blahblah"          NA       
[7,] "pink"              "#FFC0CB"
unitizer>