Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

argsParser

Parser of an argument string


Description

This command parses ...DESCRITION TO DO !!!

Usage

argsParser(option, args, sep = " ", novalue_response = NULL)

Arguments

option

character strings containg options (or flag) whose values

args

String containing all the arguments of an R script

sep

separator character. Default is " ". If it is of length 2, the first is seperator among different options, the second is betwwen option name and its value.

novalue_response

value used in case the option is missing. Default is NULL.

Examples

args <- "--value  6  --fruit apple"

option <- "--fruit"

value <- argsParser(option=option,args=args)

option2 <- "--jobs"

value2 <- argsParser(option=option2,args=args)
value22 <- argsParser(option=option2,args=args,novalue_response="./")
 args_b <- "value=6 , fruit=apple"
option3 <- "value"
value <- argsParser(option=option3,args=args_b,sep=c(",","="))

geotopbricks

An R Plug-in for the Distributed Hydrological Model GEOtop

v1.5.4
GPL (>= 2)
Authors
Emanuele Cordano, Daniele Andreis, Fabio Zottele
Initial release
2020-02-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.