Process command line arguments, allowing scripts to behave like functions, with well-defined inputs and outputs. Helps make data analysis workflows more modular, and therefore more transparent, flexible, and reliable.
Process command line arguments as part of data analysis workflow.
The main function is cmd_assign().
For an overview of the package, see Quick Start.
For ideas on building safe, modular workflows, see Modular Workflows for Data Analysis.
install.packages("command")
cmd_assign(.data = "data/raw_data.csv",
date_start = "2025-01-01",
trim_outliers = TRUE,
.out = "out/cleaned_data.rds")