Process Command Line Arguments

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.


command

R-CMD-check Codecov testcoverage CRANstatus

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.

Installation

install.packages("command")

Example

cmd_assign(.data = "data/raw_data.csv",
           date_start = "2025-01-01",
           trim_outliers = TRUE,
           .out = "out/cleaned_data.rds")

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("command")

0.3.0 by John Bryant, 9 days ago


https://bayesiandemography.github.io/command/, https://github.com/bayesiandemography/command


Report a bug at https://github.com/bayesiandemography/command/issues


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


Authors: John Bryant [aut, cre] , Bayesian Demography Limited [cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, methods, tools

Suggests covr, dplyr, ggplot2, knitr, littler, quarto, readr, rmarkdown, testthat, tidyr, withr


See at CRAN