tests/testthat/test-rp.colours.R

#     Tests for the rp.datalink

# setwd('rpanel')
# library(devtools)
# library(testthat)
# load_all()

test_that('Standard calls', {
   expect_no_error(rp.colours())
   expect_no_error(rp.colors())
   expect_no_error(rp.colours(c('estimate' = 'darkgreen')))
   expect_warning(rp.colours(c('estmate' = 'darkgreen')))
   expect_warning(rp.colours(c('darkgreen')))
   expect_warning(rp.colours(c(2)))
})

Try the rpanel package in your browser

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

rpanel documentation built on March 12, 2026, 9:07 a.m.