findProgram {PBSmodelling}R Documentation

Locates a program in the PATH environment variable

Description

Returns the complete filename and path of a program in the PATH environment variable. findProgram is similar to the which command under Unix, but works under Windows too.

Usage

findProgram( name, includename=FALSE )

Arguments

name name of a program to locate
includename boolean: if true, include the filename in the path returned, otherwise just the directory.

Value

A string containing the location of the program. NULL is returned if the program is not located.

Author(s)

Alex Couture-Beil

See Also

dirname

Examples

findProgram( "gcc" )
findProgram( "notepad" )
findProgram( "R", TRUE )

[Package PBSmodelling version 2.55.175 Index]