Function to check if third-party software or utility is installed and set in the PATH.

tryCMD(command, silent = FALSE)

Arguments

command

a character vector containing the command line name to be tested.

silent

If set to TRUE, all messages returned by the function will be suppressed.

Value

It will return a positive message if the software is set on the PATH or an error message if the software is not set it.

Note

Please note that not necessary the software is not installed if the message indicates an error, but it has not been exported on the current PATH.

Author

Danela Cassol

Examples

if (FALSE) {
tryCMD(command="R") 
tryCMD(command="blastp") 
tryCMD(command="hisat2") 
  }