Skip to contents

Define a milestone of a trial. This is a user-friendly wrapper for the class constructor Milestones$new. Users who are not familiar with the concept of classes may consider using this wrapper directly.

Usage

milestone(name, when, action = doNothing)

Arguments

name

character. Name of milestone.

when

condition to check if this milestone should be triggered.

action

function to execute when the milestone triggers. If no action to be executed but simply need to record triggering time of a milestone, action can be its default value, a built-in function doNothing.