tests/testthat/test-migrate.R

test_that("migrate() works", {
  migrate_test_temp <-
    locatr_example("worked-examples.xlsx") %>%
    xlsx_cells_fmt(sheets = "pivot-annotations") %>%
    locate_data(data_type == "numeric") %>%
    locate(direction = "WNW", name = subject_type) %>%
    locate(direction = "W", name = subject) %>%
    locate(direction = "NNW", name = gender) %>%
    locate(direction = "N", name = name) %>%
    migrate()


  expect_identical(migrate_test_temp, locatr::migrate_test)
})
ianmoran11/locatr documentation built on June 14, 2020, 3:32 a.m.