Process command line arguments. Processing includes checking, naming, and coercing to numeric, date, or logical. By capturing assumptions about inputs and outputs, the 'command' package can provide scripts with well defined interfaces, leading to safer, more modular data analysis pipelines.
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")