Toward a grammar of psychological experiments
summary
An R package called xprmntr compiles R experiment code into jsPsych JavaScript, uses a thin plumber server for backend data, and deploys to GitHub Pages or Google App Engine. It writes trials that accept keyboard, button or slider responses, saves results as CSV, supports images/audio/video, and offers timeline logic with if and loop primitives. The system works for teaching and running hundreds of web experiments but remains janky and limited by many specialized jsPsych plugins.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 0:45Building R packages
- 2:28History of experiments
- 3:53Psychologists and languages
- 5:39Native R approach
- 7:23Limitations of Shiny
- 9:33Requirements for solution
- 10:35Introducing jsPsych R
- 11:35Building experiments
- 13:19Package features
- 15:48Flow control
- 16:29Limitations and future
- 18:15Grammar of experiments
- 20:00Summary
- 20:24Q&A
related talks
40mJavaScript ... for Science!
19mEmpowering Learners with WebR, Pyodide, and Quarto
31mJavaScript Compilers For Fun and Profit
17mJavaScript and mathematical computing across servers and clients
05mWebR: R compiled for WebAssembly and running in the browser
42mSrsly R1pp3d J@vaScript
15mJavaScript and Interactive Installations
46mJavaScript Frameworks with Ruby
