Internal function to load the paths of executables from the JSON where they are saved when installed.
load_binpaths(bins = NULL)
bins | Character vector with one of more of the following values:
"gdal", sen2cor", "aria2", "python".
If an executable corresponding to the passed |
---|
The list of the paths
License: GPL 3.0
L. Ranghetti, M. Boschetti, F. Nutini, L. Busetto (2020). "sen2r": An R toolbox for automatically downloading and preprocessing Sentinel-2 satellite data. Computers & Geosciences, 139, 104473. DOI: 10.1016/j.cageo.2020.104473, URL: http://sen2r.ranghetti.info/.
# \donttest{ # Load only existing paths binpaths <- load_binpaths() binpaths#> $gdalinfo #> [1] "/usr/bin/gdalinfo" #> #> $gdal_calc #> [1] "/usr/bin/gdal_calc.py" #> #> $gdal_fillnodata #> [1] "/usr/bin/gdal_fillnodata.py" #> #> $aria2c #> [1] "/usr/bin/aria2c" #> #> $sen2cor #> [1] "/home/lranghetti/.sen2r/sen2cor/bin/L2A_Process" #> #> $python #> [1] "/usr/bin/python3.6" #> #> attr(,"path") #> [1] "/home/lranghetti/.sen2r/paths.json"# } if (FALSE) { # Load paths, forcing to check GDAL and sen2cor binpaths <- load_binpaths(c("gdal", "sen2cor")) binpaths }