Skip to contents

Saves a TypoPrompt object as either its exact plain-text prompt or a self-contained interactive HTML page.

Usage

saveTypoPrompt(x, file, format = c("txt", "html"))

Arguments

x

A TypoPrompt object returned by typoPrompt.

file

Character string giving the output file path.

format

Output format: "txt" for the raw prompt or "html" for the interactive HTML viewer.

Value

Invisibly returns the normalized output file path.

See also

Examples

if (FALSE) { # \dontrun{
prompt <- typoPrompt(clust_obj)
saveTypoPrompt(prompt, "cell_annotation_prompt.txt", format = "txt")
saveTypoPrompt(prompt, "cell_annotation_prompt.html", format = "html")
} # }