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")

})

Try the repana package in your browser

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

repana documentation built on May 29, 2024, 10:36 a.m.