Re: [R] Running an R script from Delphi 7

2009-04-07 Thread Tom Backer Johnsen
Arghh! How stupid can you (I) be. It is R.exe that is called and not RCMD.exe. Hence the program is waiting for a response to the question about saving the workspace. Tom Tom Backer Johnsen wrote: Gentlepersons: A long time ago I used to be able to start R (version 2.6.1) from a Delphi 7

Re: [R] Running an R script from Delphi 7

2009-04-07 Thread Tom Backer Johnsen
After some headscratching I found the solution. Perhaps the options for calling R has been changed. Place " CMD BATCH --no-save --silent " between the call on R and the naming of the files for input and output. Tom Tom Backer Johnsen wrote: Gentlepersons: A long time ago I used to be able

[R] Running an R script from Delphi 7

2009-04-07 Thread Tom Backer Johnsen
Gentlepersons: A long time ago I used to be able to start R (version 2.6.1) from a Delphi 7 program and run a script by using a procedure like the following: function StartRAndWait (CommandLine : string) : Boolean; var Proc_info: TProcessInformation; Startinfo: TStartupInfo; ExitCode: