generate_workbook: Generate A Workbook Object From An 'aftable'

View source: R/workbook.R

generate_workbookR Documentation

Generate A Workbook Object From An 'aftable'

Description

Populate an 'openxlsx' Workbook-class object with content from an aftable-class object. In turn, the output can be passed to saveWorkbook from 'openxlsx'

Usage

generate_workbook(aftable)

Arguments

aftable

An aftable-class object created using create_aftable (or as_aftable), which contains the data and information needed to create a workbook.

Value

A Workbook-class object.

Examples

# Convert an aftable to a Workbook-class object
x <- generate_workbook(demo_aftable)
class(x)

# As above, using a compliant data.frame and the base pipe
y <- demo_df |>
  as_aftable() |>
  generate_workbook()


aftables documentation built on April 12, 2025, 9:16 a.m.