tests/testthat/test-class-chart-sheet.R

testsetup()

test_that("class wbChartSheet works", {

  wb <- wb_workbook()$add_chartsheet()
  expect_error(wb$add_data(x = mtcars), "Cannot write to chart sheet.")

})

Try the openxlsx2 package in your browser

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

openxlsx2 documentation built on April 3, 2025, 8:40 p.m.