Learn R Programming

rtemis (version 1.4.3)

to_markdown: Render a report as Markdown

Description

Render a writeup, review or AI review as Markdown, the text write_text writes to a file and rtemislive displays. Top-level sections are ## headings, so the text can be placed under a title of the reader's choosing.

Usage

to_markdown(x, ...)

Value

Character scalar ending in a newline.

Arguments

x

SupervisedWriteup, SupervisedReview or AISupervisedReview object.

...

Not used.

Author

EDG

Examples

Run this code
idx <- c(1:40, 51:90, 101:140)
mod <- train(
  iris[idx, ],
  dat_test = iris[-idx, ],
  hyperparameters = setup_CART(),
  verbosity = 0L
)
cat(to_markdown(review(mod)))

Run the code above in your browser using DataLab