Learn R Programming

textAnnotatoR (version 1.0.1)

save_as_html: Save annotated text as HTML document

Description

Creates an HTML document containing the annotated text with proper styling for code highlights and formatting, preserving line breaks.

Creates an HTML document containing the annotated text with proper styling for code highlights and formatting.

Usage

save_as_html(filename, rv)

save_as_html(filename, rv)

Value

Invisible NULL, called for side effect

Invisible NULL, called for side effect

Arguments

filename

Character string specifying output file path

rv

ReactiveValues object containing:

  • text: Original text content

  • annotations: Data frame of annotations

  • code_colors: Named character vector of code colors