NONMEM Users Network Archive

Hosted by Cognigen

Re: System call from R causes loss of cursor control

From: Leonid Gibiansky <LGibiansky>
Date: Wed, 27 Feb 2008 14:45:59 -0500

Dave,
Use help(system) to see command options.

You need to set minimized = T and/or invisible=T, I do not remember
exactly but one of those does the trick

system(command, intern = FALSE, ignore.stderr = FALSE,
        wait = TRUE, input = NULL, show.output.on.console = TRUE,
        minimized = FALSE, invisible = TRUE)

Leonid

--------------------------------------
Leonid Gibiansky, Ph.D.
President, QuantPharm LLC
web: www.quantpharm.com
e-mail: LGibiansky at quantpharm.com
tel: (301) 767 5566




Nick Holford wrote:
> Dave,
>
> Have you tried using the minimized option for the R system command?
> Or if that doesnt work you could try calling system with a command like
> this: "start /min nonmembatch.bat"
>
> See http://www.computerhope.com/starthlp.htm for details of the DOS
> start command.
>
> Nick
>
> David H Salinger wrote:
>> Hi All,
>>
>> I am using R to simulate protocol decision making and repeatedly call NONMEM - via a system call - to perform the simulation. The problem with this is that every time the system call is executed, the dos window pops up and cursor control is taken from whatever else that I am working on - beyond annoying! I am using Windows. Does anyone know how to prevent this?
>>
>> I saw in the archives that Mark Sale (I believe) asked this question many years ago, but it did not appear that a satisfactory answer was returned.
>>
>> Thanks in advance,
>> Dave
>>
>>
>>
>>
>>
>
> --
> Nick Holford, Dept Pharmacology & Clinical Pharmacology
> University of Auckland, 85 Park Rd, Private Bag 92019, Auckland, New Zealand
> n.holford
> www.health.auckland.ac.nz/pharmacology/staff/nholford
>
Received on Wed Feb 27 2008 - 14:45:59 EST

The NONMEM Users Network is maintained by ICON plc. Requests to subscribe to the network should be sent to: nmusers-request@iconplc.com.

Once subscribed, you may contribute to the discussion by emailing: nmusers@globomaxnm.com.