The goal of jaysire is to provide a method for writing behavioural
experiments in R that can be deployed through a web browser. The package
relies on the jsPsych library by Josh de
Leeuw (GitHub page) to create the
experiments, and is structured so that functions in jaysire use the same
argument names as the corresponding jsPsych functions. For the most
part, function names in jaysire are organised around families that share
a common prefix. For example, the trial_
family is used to define
individual trials within an experiment, build_
functions construct
more complex entities, and so on. See the reference
page for the complete
list of all
functions.
The jaysire package has not been released on CRAN, but you can install it directly from GitHub using the following commands:
#install.packages("remotes")
remotes::install_github("djnavarro/jaysire")
There are a series of tutorial articles:
- Getting started
- Randomisation, repetition and variables
- Using resource files
- Image, video and audio files
- Buttons, key presses and sliders
- Survey pages
- Loops and branches
- A choice reaction time task
- The jsPsychR package by Matt Crump
- The formr package by Ruben Arslan
- The psychTestR package by Peter Harrison
- My xprmtnr package (in development)
The name “jaysire” is a phonetic transcription of “j-psy-R”, reflecting the fact that it adheres closely to the design principles used in the jsPsych javascript library.