About 2Rmarkdown
2Rmarkdown converts statistical software files into reproducible R Markdown reports. Upload a Stata .do file, JAMOVI .omv file, JASP .jasp file, or SPSS .sps file and get a self-contained R Markdown document with equivalent R code.
Built for meta-science and replication research, where reproducibility and transparency are essential. Each converter is backed by a standalone, open-source R package that can also be used independently from the command line or in your own R scripts.
How It Works
Upload
Drop your statistical software file (.do, .omv, .jasp, .sps) and optionally a data file (.dta, .sav).
Parse & Convert
The converter parses your syntax, translates each command to equivalent R code, and wraps it in an R Markdown document.
Download
Download the .Rmd file (and optionally a knitted HTML report). Original syntax is preserved as comments.
Web App vs. R Packages
This Web App
- Hosted on Vercel + Railway
- Drag-and-drop interface, no R installation needed
- Batch processing for multiple files
- Server-side conversion with full knitting to HTML
- Soft caps of 5 conversions/day, 50/month per user
R Packages (open source)
- Install from GitHub with devtools or remotes
- Use in your own R scripts or pipelines
- CRAN-ready (pass R CMD check with 0 errors, 0 warnings)
- Full test suites with hundreds of automated tests
- MIT licensed, contributions welcome
R Packages
stata2rmarkdown
Deterministic converter for Stata .do syntax files. Parses 53+ commands, expands macros (local, global, foreach, forvalues), handles factor variables and clustered/robust SE, and generates self-contained R Markdown reports targeting the fixest + modelsummary + tidyverse ecosystem.
R backend: fixest + modelsummary + tidyverse
Regression
Binary / Multinomial
Other Models
Descriptive Statistics
Hypothesis Tests
Data Manipulation
Post-Estimation
Output & Tables
Graphics
Labels
SSC / Community
Key features
- • Macro expansion (local, global, foreach, forvalues)
- • Factor variables (i., c., ##) and interactions
- • Clustered and robust standard errors
- • Original Stata syntax preserved as foldable comments
- • Optional knitting to HTML with executed R code
Install
# install.packages("remotes")
remotes::install_github("giladfeldman/STATA2Rmarkdown")jamovi2rmarkdown
Extracts data and analysis configurations from JAMOVI .omv files, reconstructs the jmv R package function calls, and generates formatted R Markdown documents with all original analyses preserved. Supports descriptives, t-tests, ANOVA, correlation, regression, reliability, factor analysis, and more.
R backend: jmv
T-Tests
ANOVA
Regression
Correlation
Descriptive Statistics
Reliability & Factor
Non-Parametric & Other
Key features
- • Full data extraction from binary .omv files
- • Depth-aware formula parsing (handles complex interactions)
- • Proper variable quoting for special characters
- • Session-based file isolation for security
Install
# install.packages("remotes")
remotes::install_github("giladfeldman/jamovi2rmarkdown")jasp2rmarkdown
Extracts data and analysis configurations from .jasp archives (ZIP files containing SQLite databases and JSON metadata), maps them to equivalent R code using 80+ function mappings across 17 JASP packages, and generates formatted R Markdown documents. Covers frequentist and Bayesian analyses.
R backend: jaspTools / standalone R
T-Tests (jaspTTests)
ANOVA (jaspAnova)
Regression (jaspRegression)
Frequencies (jaspFrequencies)
Descriptives (jaspDescriptives)
Factor Analysis (jaspFactor)
SEM (jaspSem)
Meta-Analysis (jaspMetaAnalysis)
Advanced Modules
Key features
- • Extracts from SQLite + JSON inside .jasp archives
- • Maps both frequentist and Bayesian analyses
- • Data priority: internal.sqlite > xdata.json > data.csv
- • Original JASP output preserved as benchmark
Install
# install.packages("remotes")
remotes::install_github("giladfeldman/jasp2rmarkdown")spss2rmarkdown
Parses 30+ SPSS commands including full expression translation (17+ SPSS functions mapped to R equivalents), translates them to R code using the jmv package, and generates formatted R Markdown reports. Preserves variable labels and value labels from .sav files. Validated against GNU PSPP.
R backend: jmv + tidyverse
Descriptive Statistics
T-Tests & ANOVA
Correlation & Regression
Reliability & Factor
Non-Parametric Tests
Crosstabs & Other
Data Transformation
Key features
- • Preserves variable labels and value labels from .sav
- • Expands SPSS 'TO' syntax using .sav variable order
- • Full expression translation (MISSING, ABS, MEAN, etc.)
- • APA 7 formatted output tables
- • Optional knitting to HTML with executed R code
Install
# install.packages("remotes")
remotes::install_github("giladfeldman/spss2rmarkdown")stat2rmarkdown
Shared core utilities for all converters. Provides R Markdown document assembly, variable quoting, output directory management, and logging.
Functions: quote_var(), generate_yaml_header(), generate_setup_chunk(), generate_session_footer(), create_output_dir(), safe_as_numeric(), log_message()
# install.packages("remotes")
remotes::install_github("giladfeldman/stat2rmarkdown")Processing & data handling
Files are uploaded to a secure server for processing. Each format has a dedicated R conversion service that parses your statistical software files and generates reproducible R Markdown reports with full knitting to HTML. All uploaded files are deleted after processing.
Created By
Gilad Feldman — ORCID | GitHub
Built for open science, replication, and research transparency.