Saves the current participant's results to disk. This function can be called e.g. within a code block.

save_results_to_disk(complete, state, opt, ...)

## Arguments

complete

Whether or not the participant has now completed the test (scalar Boolean).

state

The participant's state object.

opt

Test options as created by test_options().

...

Further arguments are allowed but ignored (for back-compatibility).