Re: [R] Call R from Matlab

2015-02-27 Thread William Dunlap
This usually has to do with the caller (Matlab) and the callee (R) being dynamically lined with different versions of dynamic libraries. On Linux I work around this sort of thing by setting LD_LIBRARY_PATH to exactly what I want when invoking R. E.g., instead of making the sh command /usr/loca

[R] Call R from Matlab

2015-02-27 Thread Julian Keil
Dear all, I have a Mac, OSX 10.7.5, run R 3.1.2 (2014-10-31) and Matlab R2013a (8.1.0.604). I try to call R from within Matlab to run a function in Batch mode. To do this, I followed this example: From: www.mathworks.com/matlabcentral/newsreader/view_thread/163726 In an m-file you would have: