tests/testthat/test-get_formatting.R

test_that("get_formatting extracts formatting information in a long, key-value format", {
  test_spreadsheet <- system.file("extdata", "rodentsheet.xlsx", package = "forgts")

  formatting <- get_formatting(test_spreadsheet)

  expect_true("format" %in% names(formatting))
  expect_true("val" %in% names(formatting))
})

Try the forgts package in your browser

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

forgts documentation built on April 12, 2025, 1:46 a.m.