inst/tinytest/test_relop_drop_columns.R

test_relop_drop_columns <- function() {

 dL <- data.frame(x = 1, y = 2, z = 3)
 rquery_pipeline <- local_td(dL) %.>%
   drop_columns(., "y")
 res <- ex_data_table(rquery_pipeline)
 expect_true(is.data.frame(res))
 expect_true(!('y' %in% colnames(res)))

 invisible(NULL)
}

test_relop_drop_columns()

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.