psychds provides tools for creating, editing, and validating psychological research datasets following the Psych-DS standard. The package includes:
- An interactive Shiny application for building Psych-DS compliant datasets from existing directories
- Functions for validating existing datasets against the standard
- Tools for generating data dictionaries with professional formatting
- OSF integration for publishing validated datasets
install.packages("psychds")# install.packages("remotes")
remotes::install_github("psych-ds/psychds-r", dependencies = TRUE)The easiest way to use psychds is through the interactive Shiny app:
library(psychds)
run_psych_ds_app()This opens a guided interface for:
- Selecting your project directory and data files
- Adding dataset metadata (name, description, authors)
- Standardizing filenames with Psych-DS keywords
- Generating data dictionaries
- Validating your dataset
- Exploring your dataset
- Optionally uploading to OSF
Before running the app, verify that all required packages are installed:
check_psychds_deps(detailed = TRUE)Build Psych-DS compliant datasets with a step-by-step wizard:
- Select and organize data files
- Auto-detect CSV column structures
- Apply standardized naming conventions
- Generate
dataset_description.jsonmetadata
Create professional, human-readable data dictionaries:
- Document all variables with descriptions, types, and constraints
- Include categorical value definitions
- Generate professional readable dictionaries in HTML/PDF
Validate datasets against the Psych-DS specification:
- Check required files and structure
- Validate JSON metadata against schemas
- Verify data file integrity
- Get detailed error messages and suggestions
Upload validated datasets directly to the Open Science Framework:
- Authenticate with personal access token
- Create new projects or add to existing ones
- Preserve folder structure
- Auto-generate README files
Psych-DS (Psychological Dataset Standard) provides a specification for organizing behavioral and psychological research data. Key components include:
dataset_description.json: Metadata about the dataset using Schema.org vocabularydata/: Directory containing data files with standardized names- Keyword-based filenames: e.g.,
study-attention_session-1_data.csv - Data dictionaries: Documentation of all variables
Learn more at psych-ds.github.io
- R >= 4.0.0
- Required packages: shiny, shinydashboard, shinyjs, shinyFiles, DT, jsonlite
- Optional: sortable, zip, pointblank (for full functionality)
Contributions are welcome! Please read our Contributing Guide for details on:
- Reporting bugs
- Suggesting features
- Submitting pull requests
If you use psychds in your research, please cite:
@software{psychds,
title = {psychds: Tools for Creating and Validating Psych-DS Datasets},
author = {{Psych-DS Development Team}},
year = {2024},
url = {https://github.com/psych-ds/psychds-r}
}MIT © Psych-DS Development Team
