Companion R Package for the 'formr' Survey Framework

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.


formr

CRAN status Codecov test coverage

The accompanying R package for the study framework formr

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.

  • Data Management: Connect to the API to fetch, type-cast, and automatically score results in a single step.
  • Project Syncing: Download your study structure (surveys, CSS, assets) to your computer for local editing and version control, then push changes back to the server.

When used within a run (Internal Usage): These functions are designed to run inside rforms.org via OpenCPU to enhance the participant experience.

  • Dynamic Feedback: Generate immediate, personalized charts and visualizations to show participants their results.
  • Survey Logic: Use shorthand functions to handle complex text logic or conditional display settings within your survey units.

You can get started right here!

Installation

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)

Important: API V1 vs. Classic

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.

Documentation

Learn how to get started and how to use the formr package to your advantage:

https://rubenarslan.github.io/formr/

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("formr")

1.1.0 by Ruben Arslan, 4 months ago


https://rubenarslan.github.io/formr/, https://github.com/rubenarslan/formr


Report a bug at https://github.com/rubenarslan/formr/issues


Browse source code at https://github.com/cran/formr


Authors: Ruben Arslan [aut, cre] (ORCID: , Tim B Seidel [aut, ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports stats, methods, tools, utils, dplyr, ggplot2, scales, haven, stringr, tidyr, knitr, httr, curl, jsonlite, lubridate, rmarkdown, otp, keyring, purrr, readr, rlang

Suggests testthat, vcr, mockery, withr, rstudioapi, plotly, commonmark


See at CRAN