sen2r (version 1.2.1)

load_binpaths: Load the paths of external executables

Description

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

Usage

load_binpaths(bins = NULL)

Arguments

bins

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

Value

The list of the paths

Examples

Run this code
# NOT RUN {
# Load only existing paths
binpaths <- load_binpaths()
binpaths
# }
# NOT RUN {
# }
# NOT RUN {
# Load paths, forcing to check GDAL and sen2cor
binpaths <- load_binpaths(c("gdal", "sen2cor"))
binpaths
# }

Run the code above in your browser using DataLab