raw_input_parser: Parse direct unquoted input to package name/version vector.

View source: R/helper_functions.R

raw_input_parserR Documentation

Parse direct unquoted input to package name/version vector.

Description

Converts input like lib.load(hoi = 3.4, hai = '>= 7.9.2', FIETS)
to a named character vector like c(hoi = '3.4', hai = '>= 7.9.2', FIETS = '')
which is compatible with all code that follows.

Must be called like raw_input_parser(as.list(match.call()), c('named_param1', 'named_param2', 'named_param3')).
It will return all (name) value pairs if values are available excluding the named parameters provided in the second argument.

Usage

raw_input_parser(arguments, varnames_to_exclude)

Arguments

arguments

The as.list(match.call()) list returned from the calling function. It creates a list of all provided arguments.

varnames_to_exclude

A character vector with var names to exclude. Normally that includes all arguments after ....


multiversion documentation built on March 22, 2022, 1:07 a.m.