Hi Experts,
I would like to execute a R script simply as
R --file=x.R
It runs well on the command line. However when I try the system call in C++ by
QProcess::execute("R --file=x.R");
or
system("R --file=x.R");
the program R runs and quits but I can't see the output the program is supposed to generate. If a program uses no stdout (such as R), how do I fetch the output after a system call either as a output file or in the program's own console?
Thanks for your time.