document_start: Start automatic run documentation

View source: R/documentation.R

document_startR Documentation

Start automatic run documentation

Description

Calling 'document_start()' enables automatic logging for subsequent 'localLLM' calls. Information such as timestamps, models, and generation settings are buffered in-memory until [document_end()] is invoked, at which point a human-readable text report is written to disk.

Usage

document_start(path = NULL, metadata = list(), append = FALSE)

Arguments

path

Optional log file path. Defaults to 'localLLM_run_<timestamp>.txt' in the working directory.

metadata

Optional named list of user-defined metadata to include in the log header (e.g. project name, dataset id).

append

When 'TRUE', entries are appended to an existing file instead of overwriting it.

Value

The path that will be written when [document_end()] is called.


localLLM documentation built on Nov. 3, 2026, 1:09 a.m.