Learn R Programming

irace (version 1.02)

buildCommandLine: Build a Command Line

Description

'buildCommandLine' receives two vectors, one containing the values of the parameters, the other containing the switches of the parameters. It builds a string with the switches and the values that can be used as a command line to call the program to be tuned, instanciating one candidate configuration.

Usage

buildCommandLine(values, switches)

Arguments

values
A vector containing the value of each parameter for the candidate configuration.
switches
A vector containing the switches of each paramter (in an order that corresponds to the values vector).

Value

  • A character chain containing the switches and the values.

Details

The chain concatenates for all parameters with a space between each parameter (but none between the switches and the corresponding values).

Examples

Run this code
switches <- c("--switch1 ", "--switch2 ")
values <- c("value_1", "value_2")
buildCommandLine (values, switches)

Run the code above in your browser using DataLab