Skip to contents

Returns a path for example data.

Usage

demo_file(fn)

Arguments

fn

File to read from the demo folder

Value

File path for given demo file

The list of available demo files:

  • jspsych-animation.json

  • jspsych-audio-button-response.json

  • jspsych-audio-keyboard-response.json

  • jspsych-audio-slider-response.json

  • jspsych-call-function.json

  • jspsych-canvas-button-response.json

  • jspsych-canvas-keyboard-response.json

  • jspsych-canvas-slider-response.json

  • jspsych-free-sort.json

  • jspsych-fullscreen.json

  • jspsych-html-button-response.json

  • jspsych-html-keyboard-response.json

  • jspsych-html-slider-response.json

  • jspsych-image-button-response.json

  • jspsych-image-keyboard-response.json

  • jspsych-image-slider-response.json

  • jspsych-instructions.json

  • jspsych-serial-reaction-time-mouse.json

  • jspsych-serial-reaction-time.json

  • jspsych-survey-html-form.json

  • jspsych-survey-likert.json

  • jspsych-survey-multi-choice.json

  • jspsych-survey-multi-select.json

  • jspsych-survey-text.json

  • jspsych-video-button-response.json

  • jspsych-video-keyboard-response.json

  • jspsych-video-slider-response.json

Examples

demo_file("jspsych-html-button-response.json")
#> [1] "/home/runner/work/_temp/Library/jspsychread/testdata/jspsych-html-button-response.json"