checkExecutionStrings: Check whether a binary's output contains given strings.

Description Usage Arguments Value Note

Description

Given a pattern, this function will check whether the given binary has these patterns in its output string, when called without any arguments. This helps all wrappers in identifying the correct binary.

Usage

1
2
checkExecutionStrings(trainBinaryPath = NULL, patterns = NULL,
  verbose = FALSE)

Arguments

trainBinaryPath

Path of binary to check.

patterns

List of patterns to check for. Checking is done via grep.

verbose

Be verbose?

Value

True, if all patterns matches, False if not.

Note

To make sure that the binary is correct, it will be executed! binary is really not exchangeable).

Our problem child, svmperf, waits for an key. therefore a flag applyKeyFix was handed before to simulate a keypress. but this seemed to be platform dependent. On non-unix platforms this simply did not work out. Instead now this function will load the whole binary into memory and grep for the strings there. But by reading docs– rtfm– it became clear that system2 has an 'input' parameter that just sends the simulated key to the binary– this must be platform independent. so we remove applyKeyFix for the user, and later from code too.


aydindemircioglu/SVMBridge documentation built on May 11, 2019, 4:13 p.m.