testing: Infrastructure for testing dplyr

Description Usage Examples

Description

Register testing sources, then use test_load to load an existing data frame into each source. To create a new table in each source, use test_frame.

Usage

1
2
3
4
5
6
test_register_src(name, src)

test_load(df, name = random_table_name(), srcs = test_srcs$get(),
  ignore = character())

test_frame(..., srcs = test_srcs$get(), ignore = character())

Examples

1
2
3
4
5
6
7
8
## Not run: 
test_register_src("df", src_df(env = new.env()))
test_register_src("sqlite", src_sqlite(":memory:", create = TRUE))

test_frame(x = 1:3, y = 3:1)
test_load(mtcars)

## End(Not run)

dplyr documentation built on May 20, 2017, 1:14 a.m.

Search within the dplyr package
Search all R packages, documentation and source code