Run R example with Rscript rather than R

This commit is contained in:
Ian Bell
2016-04-08 10:24:51 -06:00
parent 240774b12d
commit 5d1c99a4f5

View File

@@ -73,7 +73,7 @@ if __name__=='__main__':
subprocess.check_call('cmake ../../../.. -DCOOLPROP_R_MODULE=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DR_BIN=/usr/bin', **kwargs)
subprocess.check_call('cmake --build .', **kwargs)
with open('R/Example.out','w') as fp:
tee_call(r'DYLD_LIBRARY_PATH=/opt/refprop R -f Example.R', fp, shell = True, cwd = 'R')
tee_call(r'DYLD_LIBRARY_PATH=/opt/refprop Rscript Example.R', fp, shell = True, cwd = 'R')
copyfiles('R','R')
if not os.path.exists('MATLAB'): os.mkdir('MATLAB')