Learn R Programming

NCmisc (version 1.2.0)

check.linux.install: 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)

Value

returns true or false for each command in 'cmd'

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.

Author

Nicholas Cooper njcooper@gmx.co.uk

Examples

Run this code
check.linux.install("R") # should be standard
check.linux.install(c("perl","sed","fake-cmd"))

Run the code above in your browser using DataLab