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", "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

Note

License: GPL 3.0

References

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: https://sen2r.ranghetti.info/.

Author

Luigi Ranghetti, phD (2019) luigi@ranghetti.info

Examples

# \donttest{ # Load only existing paths binpaths <- load_binpaths() binpaths
#> $gsutil #> [1] "C:\\PROGRA~2\\Google\\CLOUDS~1\\GOOGLE~1\\bin\\gsutil" #> #> $aria2c #> [1] "C:\\Users\\LRANGH~1\\DOCUME~1\\SEN2R~1\\aria2c.exe" #> #> $sen2cor #> [1] "C:\\Users\\LRANGH~1\\DOCUME~1\\SEN2R~1\\sen2cor\\SEN2CO~1.05-\\L2A_PR~1.BAT" #> #> attr(,"path") #> [1] "C:\\Users\\LRANGH~1\\DOCUME~1\\SEN2R~1/paths.json"
# } if (FALSE) { # Load paths, forcing to check GDAL and sen2cor binpaths <- load_binpaths(c("gdal", "sen2cor")) binpaths }