The studio guide for mascot_moods().
The same page is read in the mascot studio.
Try it live.
The mascot studio shows this function with live controls and the generated code. In an R session with the optional packages bslib and knitr installed, run:
mascot::mascot_studio(fn = "mascot_moods")
It opens on this function's guide; change a control and watch the mascot.
Moods
The five shared moods come first. A character may add its own; a mood
that is not available falls back to the one named in fallback.
| name |
description |
status |
shared |
fallback |
| idle |
At rest; the starting mood. |
Resting, ready for the next piece. |
TRUE |
NA |
| thinking |
Working on something, such as a long calculation. |
Working out how the parts fit. |
TRUE |
NA |
| happy |
Something went well. |
That came together nicely. |
TRUE |
NA |
| worried |
Something needs attention, such as an invalid field. |
One part needs a closer look. |
TRUE |
NA |
| celebrating |
A big success, such as a finished task. |
Finished, and built to last. |
TRUE |
NA |
| name |
description |
status |
shared |
fallback |
| idle |
Idle scheduling state with clear separated time blocks. |
Schedule is balanced and clear. |
TRUE |
NA |
| thinking |
Thinking state inspecting an overlapping time block conflict. |
Reviewing resource conflict. |
TRUE |
NA |
| happy |
Happy state as overlapping blocks slide apart. |
Conflict resolved cleanly. |
TRUE |
NA |
| worried |
Worried state facing a major booking overlap. |
Direct schedule clash detected. |
TRUE |
NA |
| celebrating |
Celebrating state with schedule reconciled and nod of assurance. |
All bookings confirmed and locked. |
TRUE |
NA |
| name |
description |
status |
shared |
fallback |
| idle |
Idle ready state. |
Queue idle |
TRUE |
NA |
| thinking |
Analysing and diagnosing a task error. |
Diagnosing task |
TRUE |
NA |
| happy |
Repair complete and verified. |
Task repaired |
TRUE |
NA |
| worried |
Task failure detected. |
Queue error |
TRUE |
NA |
| celebrating |
Queue cleared with full success. |
All jobs finished |
TRUE |
NA |
| name |
description |
status |
shared |
fallback |
| idle |
Idle water state. |
Nothing has changed. |
TRUE |
NA |
| thinking |
Thinking water state. |
Checking the inputs. |
TRUE |
NA |
| happy |
Happy water state. |
The form is valid. |
TRUE |
NA |
| worried |
Worried water state. |
Some fields need attention. |
TRUE |
NA |
| celebrating |
Celebrating water state. |
All checks passed. |
TRUE |
NA |
Warnings, errors and common mistakes
mascot_moods("unknown-character")
Error: could not find function "mascot_moods"