tests/testthat/test_replyr_inTest.R

library('replyr')

context("inTest")

test_that("test_replyr_inTest", {
  values <- c('a', 'c')
  d <- data.frame(
    x = c('a', 'a', 'b', 'b', 'c', 'c'),
    y = 1:6,
    stringsAsFactors = FALSE
  )
  replyr_inTest(d, 'x', values, 'match')

})

Try the replyr package in your browser

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

replyr documentation built on Nov. 1, 2019, 7:49 p.m.