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: