Package 'rapsimng.decide.core'

Title: Decision-Oriented Analysis Core for APSIM Next Generation Outputs
Description: Provides a low-level interface for analysing Agricultural Production Systems sIMulator ('APSIM') Next Generation simulation outputs to support structured decision-making workflows.
Authors: Bangyou Zheng [aut, cre]
Maintainer: Bangyou Zheng <[email protected]>
License: MIT + file LICENSE
Version: 0.1.1
Built: 2026-10-14 06:40:05 UTC
Source: https://github.com/byzheng/rapsimng.decide.core

Help Index


Build output lines for a decision report document

Description

Converts a rapsimng_decide_document object into a character vector that can be written to disk. A document prefix is written first when present, then each non-NULL section body separated by blank lines.

Usage

document_lines(document)

Arguments

document

A report object with class rapsimng_decide_document.

Value

A character vector containing the ordered document lines.


Write a decision report document to disk

Description

Serialises a rapsimng_decide_document with document_lines() and writes the resulting text file to path.

Usage

write_document(document, path, overwrite = FALSE)

Arguments

document

A report object with class rapsimng_decide_document.

path

A single output file path.

overwrite

Logical scalar indicating whether an existing file may be replaced.

Value

Invisibly returns path.