Learn R Programming

openxlsx2 (version 0.8)

comment_internal: Internal comment functions

Description

Users are advised to use wb_add_comment() and wb_remove_comment()

Usage

write_comment(
  wb,
  sheet,
  col = NULL,
  row = NULL,
  comment,
  dims = rowcol_to_dim(row, col)
)

remove_comment( wb, sheet, col = NULL, row = NULL, gridExpand = TRUE, dims = NULL )

Arguments

wb

A workbook object

sheet

A vector of names or indices of worksheets

col

Column a column number of letter. For remove_comment this can be a range.

row

A row number. For remove_comment this can be a range.

comment

A Comment object. See create_comment().

dims

worksheet cell "A1"

gridExpand

If TRUE, all data in rectangle min(rows):max(rows) X min(cols):max(cols) will be removed.