Learn R Programming

coala (version 0.7.2)

search_executable: Search the working directory and the run path for an executable

Description

This function tries to find a binary of a given name by looking in the current working directory and the directories listed in the $PATH environment variable. If an environment variable with name equal to to binaries name in upper case is given, it also tries to use this as path of the binary.

Usage

search_executable(name, envir_var = NULL)

Value

The complete path of the executable is found, or "NULL" if not.

Arguments

name

The name of the executable to look for

envir_var

the name of the environment variable to use