Framework for Building Interfaces to Shell Commands
Return all named arguments and arguments passed as dots from parent fu...
return function dots from parent function as named list
Return all named arguments from parent function call
Check that file(s) exist, error if not
Generates list of expected output files
Creates list of paths by file extension & checks they exist
Suggest alternative name by minimizing Levenshtein edit distance betwe...
Error & Suggest different flag name to user
Parses commandline help options to return vector of valid flag names
Wrapper function for checking an install
Macro for constructing boolean check for valid path
Drop entries from list of flags by name, name/value pair, or index
Drop items by name from list
Convert list of function arguments to list of command flags
keep entries from list of flags by name, name/value pair, or index
Keep items by name from list
Convert flag list to vector of command flags
Macro for constructing target path validators
Checks if file exists, returns pretty status message
Checks path is valid
Checks for valid members of subdirectory
Writing interfaces to command line software is cumbersome. 'cmdfun' provides a framework for building function calls to seamlessly interface with shell commands by allowing lazy evaluation of command line arguments. 'cmdfun' also provides methods for handling user-specific paths to tool installs or secrets like API keys. Its focus is to equally serve package builders who wish to wrap command line software, and to help analysts stay inside R when they might usually leave to execute non-R software.
Useful links