An set of tools to help create tasks and experimental protocols with jsPsych. It allows you quickly create online or offline protocols, randomizing participants between conditions making sure the groups are balanced, etc.
For details about the available tasks, you can check the Tareas jsPsychR googledoc (SPANISH!), or the jsPsychR-manual.
Install jsPsychMaker with: remotes::install_github("gorkang/jsPsychMaker")
To create a full protocol using already existing tasks:
-
List available tasks:
jsPsychMaker::list_available_tasks()
-
Create protocol:
jsPsychMaker::create_protocol(canonical_tasks = c("AIM", "EAR", "IRI"),
folder_output = "~/Downloads/TEST/new_protocol",
launch_browser = TRUE)
Check if there are new tasks available in a new version of the Github package:
jsPsychMaker::check_NEW_tasks_Github()
You can create a protocol with new tasks using csv or excel files:
-
Copy example tasks to local folder:
jsPsychMaker::copy_example_tasks(destination_folder = "~/Downloads/TEST/example_tasks")
-
Create protocol
jsPsychMaker::create_protocol(folder_tasks = "~/Downloads/TEST/example_tasks",
folder_output = "~/Downloads/TEST/new_protocol_999",
launch_browser = TRUE)
See the jsPsychR manual, and "~/Downloads/TEST/example_tasks" for examples of how to create new tasks.
After creating a protocol, you can edit the config.js
file to tweak the configuration. There is a Shiny app to help you create the protocol configuration, and the consent form.
Each of the tasks should have a sister script in jsPsychHelpeR to automatize the data preparation. With jsPsychHelpeR, using a simple function jsPsychHelpeR::run_initial_setup()
you can setup a full project to automatically run the full data preparation pipeline for a jsPsychMaker protocol.
If you need help creating a new task, create a new issue and fill the details of the task in the NEW jsPsychR tasks document.
Check the jsPsychR-manual.