From sfalcon at fhcrc.org  Tue Sep 20 20:58:21 2005
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Tue, 20 Sep 2005 11:58:21 -0700
Subject: [Rd] indicating progress in RGui from a c function
In-Reply-To: <20050920180014.BA49D2FCB@post.aecom.yu.edu> (Chris Paulse's
	message of "Tue, 20 Sep 2005 14:00:06 -0400")
References: <20050920180014.BA49D2FCB@post.aecom.yu.edu>
Message-ID: <m2oe6nefci.fsf@macaroni.local>

On 20 Sep 2005, cpaulse at aecom.yu.edu wrote:
> I'd like to indicate progress of a calculation from within a C
> shared library to the R GUI.  The apparent function call is
> flush.console() after RPrintf, but it isn't clear to me what the
> easiest way to do this is.  Would it be possible to add a flag to
> RPrintf to have this done implicitly?

When you do get this sorted out, you may want to consider a verbose
option that toggles such updating of the GUI.  When users want to run
code in a non-interactive mode, such output can get in the way.

You could use interactive() to determine a default value for the
verbose option.

Best,

+ seth



[Rd] indicating progress in RGui from a c function
Seth Falcon