Examples for 'base::Sys.which'


Find Full Paths to Executables

Aliases: Sys.which

Keywords: utilities

### ** Examples

## the first two are likely to exist everywhere
## texi2dvi exists on most Unix-alikes and under MiKTeX
Sys.which(c("ftp", "ping", "texi2dvi", "this-does-not-exist"))
                ftp                ping            texi2dvi this-does-not-exist 
     "/usr/bin/ftp"     "/usr/bin/ping"                  ""                  "" 

[Package base version 4.2.3 Index]