Learn R Programming

NCmisc (version 1.1.5)

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)

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'

Examples

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

Run the code above in your browser using DataLab