Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

Alex Couture-Beil, Vancouver Island University, Nanaimo BC

See Also

Examples

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

PBSmodelling

GUI Tools Made Easy: Interact with Models and Explore Data

v2.68.8
GPL (>= 2)
Authors
Jon T. Schnute [aut], Alex Couture-Beil [aut], Rowan Haigh [aut, cre], Nicholas Boers [ctb], Anisa Egeli [ctb], A. R. Kronlund [ctb], Steve Martell [ctb], Norm Olsen [ctb]
Initial release
2019-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.