tests/testthat/test-pillar-utils.R

test_that("turning pillars into columns and back again works", {
  aaa <- array(1:27, dim = rep(3, 3))
  expect_equal(aaa, pillars_to_cols(aaa) %>% cols_to_pillars(dim(aaa)))
})

Try the detrendr package in your browser

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

detrendr documentation built on March 7, 2023, 7:52 p.m.