/usr/share/doc/r-cran-dplyr/tests/testthat/test-union-all.R is in r-cran-dplyr 0.7.4-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | context("union_all")
test_that("union all on vectors concatenates", {
expect_equal(union_all(1:3, 4:6), 1:6)
})
test_that("union all on data frames calls bind rows", {
df1 <- data_frame(x = 1:2)
df2 <- data_frame(y = 1:2)
expect_equal(union_all(df1, df2), bind_rows(df1, df2))
})
|