Skip to contents

This function is a wrapper for base::Sys.which to find the path to a command. It also searches within the FLAMES basilisk conda environment. This function also replaces "" with NA in the output of base::Sys.which to make it easier to check if the binary is found.

Usage

find_bin(command)

Arguments

command

character, the command to search for

Value

character, the path to the command or NA

Examples

find_bin("minimap2")
#>                                                                    minimap2 
#> "/github/home/.cache/R/basilisk/1.17.2/FLAMES/1.99.1/bins_env/bin/minimap2"