When I run a simple test script from within R:
system("sh test.scr, intern=TRUE")
where test.scr is:
I get an error:
/home/alobo/OTB-6.6.1-Linux64/bin/otbApplicationLauncherCommandLine: symbol lookup error: /usr/lib/x86_64-linux-gnu/libotbossimplugins-6.6.so.1: undefined symbol: _ZThn16_NK15ossimProjection5printERSo
If checked that the 1st line of the script works and that the PATH gets actually set.
The same script works from the linux terminal
Also, this used to work with 6.6.0 (actually had problems until I introduced the 1st line in the script)