From deepayan.sarkar at gmail.com  Sat Apr  7 02:54:29 2007
From: deepayan.sarkar at gmail.com (Deepayan Sarkar)
Date: Fri, 6 Apr 2007 17:54:29 -0700
Subject: [Rd] wishlist: additional argument in R_tryEval (Rinternals.h)
In-Reply-To: <7098abec0704061623h207e60c8v247aced20e24c416@mail.gmail.com>
References: <eb555e660704061500o58da8b60ya109a17f239fb64c@mail.gmail.com>
	<Pine.LNX.4.64.0704061726440.3661@itasca2.wildberry.org>
	<7098abec0704061623h207e60c8v247aced20e24c416@mail.gmail.com>
Message-ID: <eb555e660704061754y3f53231dn461a4f33755fe0c8@mail.gmail.com>

On 4/6/07, Byron Ellis <byron.ellis at gmail.com> wrote:
> It's come up for me when I do FFI stuff. For GUI stuff I usually just
> want to suppress, but it's possible that you'd want to detect
> visibility if you were to make the GUI more programmable. I usually
> end up having to work around the whole business by fiddling with
> R_Visible.

My GUI is basically a wrapper around R (it's an exercise in teaching
myself Qt), so replicating console functionality is a major goal. R is
embedded and not the main thread, mostly because I didn't read R-exts
carefully enough before starting. But most things have gone fairly
smoothly, and I want to see how far I can go.

> Speaking of R_tryEval, can someone with the appropriate powers PRETTY
> PLEASE just make it an official API? Having it continue to be
> unofficial is just getting silly.
>
>
> On 4/6/07, Luke Tierney <luke at stat.uiowa.edu> wrote:
> > Even though it isn't officially part of the API it has seen some use
> > so I'd prefer not to change the interface; instead add
> >
> > SEXP R_tryEvalWithVis(SEXP e, SEXP env, int *ErrorOccurred, int *visible);
> >
> > or something along those lines and define R_tryEval internally in
> > terms of that.
> >
> > It may be worth thinking a bit more though to see if there is
> > something else that might be useful at this point.  I vaguely recall
> > thinking recently about needing something else of this flavor but I
> > can't seem to remember what it was exactly -- will try to see if I can
> > recall.

OK, I'll stick with withVisible for now, and wait for something like
R_tryEvalWithVis.

-Deepayan



[Rd] wishlist: additional argument in R_tryEval (Rinternals.h)
Deepayan Sarkar