Learn R Programming

PBSmodelling (version 2.67.266)

findProgram: Locates a program in the PATH environment variable

Description

Returns the complete filename and path of a program in the PATH environment variable. This is a wrapper for Sys.which, and may be deprecated in the future.

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.

See Also

Sys.which

Examples

Run this code
local(envir=.PBSmodEnv,expr={
  print(list(
  gcc =     findProgram( "gcc" ),
  notepad = findProgram( "notepad" ),
  R       = findProgram( "R", includename=TRUE ) ))
})

Run the code above in your browser using DataLab