Skip to contents

The base::Sys.which function returns "" if the command is not found on some systems and NA on others. This wrapper replaces "" with NA

Usage

sys_which(command)

Arguments

command

character, the command to search for

Value

character, the path to the command or NA

Examples

sys_which("minimap2")
#> minimap2 
#>       NA