Skip to contents

This function updates the 'comment' field of the specified row in the master_startup data frame. If a non-empty logger comment is provided, it will be set as the comment if no existing comment is present. If an existing comment is present, the logger comment will be appended to it, separated by " | ".

Usage

set_comments(master_startup, index, logger_comments)

Arguments

master_startup

A data frame containing a 'comment' column to be updated.

index

Integer index specifying the row in master_startup to update.

logger_comments

A character string containing the comment to add or append.

Value

The updated master_startup data frame with the modified comment.

Examples

if (FALSE) { # \dontrun{
master_startup <- data.frame(comment = c("", "Existing comment"))
set_comments(master_startup, 1, "New logger comment")
set_comments(master_startup, 2, "Another logger comment")
} # }