Learn R Programming

openxlsx2 (version 1.9)

create_comment: Create a comment

Description

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
)

Value

a wbComment object

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