Results Definition

The results definition is a YAML file in the jamovi/ directory with the extension .r.yaml. It describes the structure and organization of the results produced by your analysis.

The header section of the .r.yaml file defines the identity of the results output. The file must be named to match the name of the analysis, but converted to lowercase (e.g., ttest.r.yaml).

---
name:  ttest
title: Independent Samples T-Test
jrs: '1.0'

items:
    - name: ...
      type: ...
PropertyDescription
nameThe internal name of the analysis. Must correspond to the filename.
titleThe title displayed at the top of the jamovi results panel.
jrsThe jamovi results spec version (typically '1.0'). Must be wrapped in quotes.
itemsAn array of results elements that make up the results tree.

Results Elements

The items property contains a collection of results elements. Each element type is designed for a specific kind of output.

Element Types

TypeDescription
TableStructured tabular data with columns and rows.
ImagePlots and other graphical output.
GroupA container for organizing other elements into sections.
ArrayA dynamic container for repeating elements (e.g., a table per factor level).
NoticeInformational messages, warnings, or errors.
PreformattedRaw, monospaced text output.
HtmlCustom, rich HTML content.

Common Element Properties

All results elements share a set of common properties that can be configured in the YAML:

PropertyDescription
nameThe internal name used to access the element in R (e.g., self$results$name).
typeThe type of results element (see table above).
titleThe display title for the element in the results panel.
visible(Optional) Whether the element is visible by default. Can be a boolean or a data-binding to an option. Defaults to true.
clearWith(Optional) A list of option names. The element will be cleared/reset when any of these options change. Defaults to * (all options).

For a detailed look at how to interact with these elements in your R code, see the Results API (R) documentation.