Skip to content

Parse command line arguments of the form "KEY1=VALUE1 KEY2=VALUE2"

License

Notifications You must be signed in to change notification settings

mlell/ipkqg.args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipkqg.args

Parse command line arguments of the form "KEY1=VALUE1 KEY2=VALUE2"

Define a command line interface for an R script with this package.

Example:

# R script "myscript.R"
library(ipkqg.args)
ARGS <- getKVArgs()

number <- arg_int(ARGS, "number")
path <- arg_filename(ARGS, exists = TRUE)

Such a script could be called with

Rscript myscript.R number=3 path=path/to/existing/file

About

Parse command line arguments of the form "KEY1=VALUE1 KEY2=VALUE2"

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages