check.linux.install {NCmisc} | R Documentation |
Check whether a given system command is installed (e.g, bash)
Description
Tests whether a command is installed and callable by system(). Will return a warning if run on windows when linux.more=TRUE
Usage
check.linux.install(cmd = c("plink", "perl", "sed"), linux.mode = FALSE)
Arguments
cmd |
character vector of commands to test |
linux.mode |
logical, alternate way of command testing that only works on linux and mac OS X, to turn this on, set to TRUE. |
Value
returns true or false for each command in 'cmd'
Author(s)
Nicholas Cooper njcooper@gmx.co.uk
Examples
check.linux.install("R") # should be standard
check.linux.install(c("perl","sed","fake-cmd"))
[Package NCmisc version 1.2.0 Index]