Skip to contents

Use wb_comment() in new code. See openxlsx2-deprecated

Usage

create_comment(
  text,
  author = Sys.info()[["user"]],
  style = NULL,
  visible = TRUE,
  width = 2,
  height = 4
)

Arguments

text

Comment text. Character vector. or a fmt_txt() string.

author

A string, by default, will use "user"

style

A Style object or list of style objects the same length as comment vector.

visible

Default: TRUE. Is the comment visible by default?

width

Textbox integer width in number of cells

height

Textbox integer height in number of cells

Value

a wbComment object