Skip to contents

Split a rendered .smcl transcript into (command, output) chunks

Usage

.smcl_command_chunks(rendered)

Arguments

rendered

character vector: the plain-text rendering from .smcl_render()

Value

a list of list(command, output), one per top-level Stata command found (a run of . /> / N. echo lines followed by whatever it printed, up to the next echo or end of file)