Serves as a companion toolkit for the 'formr' survey framework (< https://rforms.org>). The package acts as a bridge between a 'formr' server and a local R environment. Key features include an API client for fetching, type-casting, and automatically scoring data; a project management workflow for syncing study assets (surveys, CSS) for local editing; and functions for use within 'formr' runs to generate dynamic, personalized feedback plots and to simplify survey logic.
The formr R package serves as a bridge between the rforms.org survey framework and your R environment. While the package is pre-loaded on the server to handle survey logic, it also provides a suite of tools for your local R workflow.
When used locally (External Usage): These functions streamline the administration and analysis of your study.
When used within a run (Internal Usage): These functions are designed to run inside rforms.org via OpenCPU to enhance the participant experience.
You can get started right here!
You can install the released version from CRAN:
install.packages("formr")
Or the development version from GitHub:
if (!requireNamespace("remotes")) install.packages("remotes")
remotes::install_github("rubenarslan/formr")
library(formr)
The package currently supports two workflows.
| Feature | API | Classic |
|---|---|---|
| Prefix | formr_api_* |
formr_* |
| Auth | OAuth (Access Tokens) | Email/Password |
| Capabilities | Data fetching, Project Management (Push/Pull), Session manipulation. | Classic formr functions. |
Learn how to get started and how to use the formr package to your advantage: