tests/testthat/test_addDataTable.R

# Test the addDataTable function
# 20191107 by JJAV
# # # # # # # # # # # # # # # # #


context("Test addDataTable")
require(openxlsx)

test_that("addDataTable works fine",{

  options("openxlsx.minWidth" = 6)
  wb <- createWorkbook(title = "Test addDataTable")
  nwb <- addDataTable(wb,iris, rowNames = T, firstActiveCol = 3)
  expect_is(nwb, "Workbook")

})
johnaponte/repana documentation built on Feb. 24, 2025, 3:35 a.m.