Process Command Line Arguments

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.


command

Lifecycle:experimental 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.2.0 by John Bryant, 3 months 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