1 ppam_exe = function(path=".", np=parallel::detectCores(), data=NULL, args="DontLetMeEmpty")
3 command_line = paste("mpirun -np ",np," ",path,"/ppam.exe cluster",sep="")
5 #if data provided (as data.frame or matrix...): binarize it, and add it as first argument
8 write.csv(data, "/tmp/data_csv")
9 system(paste(path,"/ppam.exe serialize /tmp/data_csv /tmp/data_bin 0 0",sep=""))
10 command_line = paste(command_line," ","/tmp/data_bin",sep="")
13 command_line = paste(command_line," ",args,sep="")