inst/tinytest/test_ex_pipe.R

test_ex_pipe <- function() {

  d <- data.frame(x = 1)
  ops <- local_td(d) %.>% extend_nse(., y = x + 1)
  expect_true("relop" %in% class(ops))
  r <- d %.>% ops
  expect_true(is.data.frame(r))

  invisible(NULL)
}

test_ex_pipe()

Try the rqdatatable package in your browser

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

rqdatatable documentation built on Aug. 21, 2023, 9:10 a.m.