tests/testthat/test-colors_symbols.R

context("colors_symbols")

test_that("Can generate plots with colors", {
  for (ix in sample(seq(100), 20)) {
    expect_silent(plot(seq(10), seq(10), col = my.colors(ix)))
    dev.off()
  }
})

test_that("Can generate plots with colors", {
  for (ix in sample(seq(100), 20)) {
    expect_silent(plot(seq(10), seq(10), pch = my.symbols(ix)))
    dev.off()
  }
})

Try the loose.rock package in your browser

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

loose.rock documentation built on April 30, 2021, 1:06 a.m.