Re: [R] Starting NONMEM (nmfe6) from R

2009-08-05 Thread Michal Figurski
Dear Scott (and all), Thanks for sharing your idea - it helped me solve the problem. The issue was actually the "nmfe6.bat" itself - there was plenty of references such as "%dir%", "%nmdir%", etc. I replaced them all with full paths. Additionally, I put all the PATH settings from "NMdirectorie

Re: [R] Starting NONMEM (nmfe6) from R

2009-08-05 Thread Scott Sherrill-Mix
I believe R does system calls from its current working directory (getwd() will tell you where that is). This may not be the same directory you designed your .bat for. What if you use the full path for your files in the batch file? e.g. call K:\nmvi\nmfe6 "K:\nmvi\path\control.txt" "K:\nmvi\path\out

[R] Starting NONMEM (nmfe6) from R

2009-08-05 Thread Michal Figurski
Hello, I have made an R script that prepares a NONMEM dataset and I would like to start the NONMEM run right after the dataset is ready. I am using windows XP, R 2.9.1 and NONMEM 6. I have prepared a run.bat file that looks like this: call K:\nmvi\NMdi