Skip to contents

Thin wrapper around report that fixes format = "tex". Produces a standalone .tex file without compiling to PDF.

Usage

report_tex(object, ...)

# S4 method for class 'ANY'
report_tex(object, ...)

Arguments

object

An energyRt S4 object: technology, repository, model, or solved scenario.

...

Arguments forwarded to levcost (when levcost = NULL and levcost parameters are provided) and/or to rmarkdown::render(). Known levcost parameter names are intercepted automatically; everything else is passed to the renderer. For a whole-scenario report, levcost = TRUE adds an ex-post levelized-cost table via levcost(scenario).

Value

Path to the generated .tex file (invisibly).

Examples

if (FALSE) { # \dontrun{
open_project(tempdir())

# the LaTeX source, for inclusion in a larger document
report_tex(topia$modules$electricity$R3$ECOA)
} # }