tests/testthat/test-pipeR.r

library(pipeR)

context("backpipe with pipeR")

test_that("backpipe works with pipeR as intended", {
  
  expect_equal( mean %<<% 1:3, 2 )
  expect_equal( mean %<<% range( na.rm = TRUE ) %<<% c(1:3, NA), 2 )
  
})

Try the backpipe package in your browser

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

backpipe documentation built on May 2, 2019, 5:41 a.m.