Skip to contents

Modify and get workbook creators

Usage

wb_add_creators(wb, creators)

wb_set_creators(wb, creators)

wb_remove_creators(wb, creators)

wb_get_creators(wb)

Arguments

wb

A wbWorkbook object

creators

A character vector of names

Value

  • wb_set_creators(), wb_add_creators(), and wb_remove_creators() return the wbWorkbook object

  • wb_get_creators() returns a character vector of creators

Examples


# workbook made with default creator (see [wbWorkbook])
wb <- wb_workbook()
wb_get_creators(wb)
#> [1] "runner"

# add a new creator (assuming "test" isn't your default creator)
wb <- wb_add_creators(wb, "test")
wb_get_creators(wb)
#> [1] "runner" "test"  

# remove the creator (should be the same as before)
wb <- wb_remove_creators(wb, "test")
wb_get_creators(wb)
#> [1] "runner"