check.linux.install: Check whether a given system command is installed (e.g, bash)

View source: R/NCmisc.R

check.linux.installR 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"))

NCmisc documentation built on Oct. 17, 2022, 5:09 p.m.