Description Usage Arguments Examples
View source: R/print_cmd_args.R
Logs out all command line arguments at the INFO level.
1 |
args |
list of command line args, generated from argparse::parse_args |
1 2 3 4 5 6 7 8 9 10 11 | library(argparse)
start_logging()
description <- "TEST"
parser <- ArgumentParser(description = description)
parser$add_argument("--test_opt", help = "This is a test")
parser$add_argument("--log", default = NULL, help = "Name of log config file [$(default)]")
args <- parser$parse_args()
print_cmd_args(args)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.