Avtor sekcije: Jonathon Love
Results Definition (.r.yaml-files)
(work in progress)
Overview
The results definition is a YAML-file in the
jamovi/directory, with the extension.r.yaml. the results definition describes the results produced by the analysis. The file is named to match the name of the analysis, but converted to lowercase. An example isttestis.r.yaml:- name: TTestIS title: Independent Samples T-Test jrs: '1.0' items: - name: ... type: ... - name: ... type: ...
Property
Function
nameThe name of the analysis. Must correspond to the file name.
titleThe title to display at the top of the results.
jrsThe
jamovi results specshould be1.0. Must be wrapped in quotes to prevent it being interpretted as a number.
itemsAn array of
results-elements that make up the results. these are described in greater detail below.
Results
Each
results-element has the following properties:
Property
default
Description
nameName of the
results-element, a string.
typeType of the
results-element, a string, see the list of results element types below.
titleTitle preceding the output from
results-element in the output, a string.
visible
trueWhether the
results-element is visible at initiation (true/false).
clearWith
*Event to clear the
resultselement (a string).Different
results-element-types have different additional properties.
The different results element types are as follows:
Preformatted
Preformatted represents the simplest of
results-elements. It is simply a block of preformattd text.It has no additional properties.
Table
Table is the most common result element in the
resultsfrom jamovi analyses. Tables are represented as rich HTML tables in jamovi, and as nicely formatted ASCII tables in an interactive R session.It can have the following properties:
Property
default
Description
columnsAn array of columns objects, see below.
rows
0An integer specifying the number of rows, or a data-binding where one row is created per element of the bound value.
swapRowsColumns
falseWhether the rows and columns should be swapped.
notes
[ ]An array of strings which appear as additional notes in the footnotes of the table.
Column
Columns within a table can have the following properties:
Property
default
Description
nameThe name of the column, a string.
titleThe title that appears at the top of the column.
type
numberEither
number(aligned right),integer(aligned right, displayed to zero decimal places) ortext(aligned left).
formatA string with comma separated values;
zto,pvalue(optional).
contentThe content to appear in the cells of the column (optional).
visible
true
true,falseor a data-binding. The column will be visible if the bound value isn’tfalseornull.
superTitleA title to appear above the title of the column (optional).
combineBelow
falseIf
TRUEand multiple adjacent cells in the column contain the same value, they will be combined into a single cell.
Image
Images can have the following properties:
Property
default
Description
widthWidth of the
image-element in the output (in pixels).
heightHeight of the
image-element in the output (in pixels).
renderFunR-function to call in order to render the image in the output.
requiresData
Group
Groups can have the following properties:
Property
default
Description
items
results-elements belonging the the group, a list of strings.
Array
Arrays can have the following properties:
Property
default
Description
items
results-elements belonging the the array, a list of strings.
template