Internal function to load the paths of executables from the JSON where they are saved when installed.

load_binpaths(bins = NULL)

Arguments

bins

Character vector with one of more of the following values: "gdal", sen2cor", "wget", "aria2", "python". If an executable corresponding to the passed bins value is not found in the JSON, it is installed (Windows) or checked (Linux).

Value

The list of the paths

Note

License: GPL 3.0

Examples

# NOT RUN {
# Load only existing paths
binpaths <- load_binpaths()

# Load paths, forcing to check GDAL and sen2cor
binpaths <- load_binpaths(c("gdal", "sen2cor"))
# }