
Search for OTB installations on Windows (bounded, cmd-free)
Source:R/otb_windows_search.R
searchOTBW.RdDetects Orfeo Toolbox (OTB) installations on Windows using a bounded set of plausible roots (no full-disk crawl). Modern standalone bundles (OTB 9.x) are detected by the presence of:
an environment script:
otbenv.ps1(preferred) orotbenv.bata launcher:
bin/otbApplicationLauncherCommandLine.exeat least one CLI wrapper in
bin/:otbcli_*.ps1,otbcli_*.bat, orotbcli_*.exe
Arguments
- searchLocation
Character scalar. Root directory to search (default
"C:/").- DL
Character scalar. Deprecated alias for
searchLocation.- maxdepth
Integer. Best-effort maximum recursion depth for the recursive
list.files()search (default8).- quiet
Logical. If
TRUE, suppress messages.
Value
A data.frame with one row per detected installation and columns:
- binDir
Normalized path to
<root>/bin.- baseDir
Normalized OTB root directory.
- otbCmd
Path to a detected CLI wrapper (ps1/bat/exe).
- envScript
Path to
otbenv.ps1orotbenv.bat.- launcher
Path to
otbApplicationLauncherCommandLine.exe.- installation_type
Classification string (e.g.,
"OTB_STANDALONE_PS1").