Bug #2287

Updated by Matthieu Decorde about 3 years ago

see P. Gervais mails :
04/12/2017 - [textometrie] question lancement de R sous Mac OS
05/12/2017 - [textometrie] peut-être que...

h3. Diagnostic

when trying to run Rserve from /Applications/TXM/R/bin/R :
> library(Rserve)
> Rserve(args="--no-save")
Starting Rserve:
/Applications/TXM/R/bin/R CMD /Applications/TXM/R/library/Rserve/libs//Rserve --no-save

dyld: Library not loaded: /Library/Frameworks/R.framework/Versions/3.3/Resources/lib/libR.dylib
Referenced from: /Applications/TXM/R/library/Rserve/libs//Rserve
Reason: image not found

h3. Solution

The "Rserve()" R command calls the Rserve process fo the $TXMINSTALL/R/library/Rserve/libs directory but the exported env variables are not used.

Replace the "Rserve()" R command with the "run.Rserve()" R command. The run.Rserve() command uses the same process and the same dynamic libraries paths and Rserve can start.

h3. Validation test

For each OS:
# Install the DEV level update
# Run TXM
# Run a specificities/AFC command with a partition