check_paths: Check candidate paths

View source: R/python-wrappers.R

check_pathsR Documentation

Check candidate paths

Description

Iterates over a vector of candidate paths and returns the first path that exists. If none of the candidate paths exist, an error is raised.

Usage

check_paths(candidate_paths, target, verbose = TRUE)

Arguments

candidate_paths

Character vector. A list of candidate paths to check.

target

Character. The resource name being searched for (e.g., "conda.sh").

verbose

Logical. If TRUE, informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

Value

A character string with the first candidate path that exists.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.