tests/test.R

library(cns)

stopifnot(

  cns("white red")    == '#FF0000',
  cns("white green")  == '#00FF00',
  cns("white blue")   == '#0000FF',
  cns("white yellow") == '#FFFF00',

  cns("orange") == cns('brown')

)

Try the cns package in your browser

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

cns documentation built on July 19, 2021, 9:07 a.m.