> >> What seems ideal to me would be a way to grab the R console output one
> >> line at a time rather than all at once so I can just append those lines
> >> individually to my gtk text buffer. I can easily do this for a specific
> >> task, such as only for a data.frame, programmatically break it a
Nathaniel Smith wrote:
> On Mon, Mar 23, 2009 at 5:31 PM, Brandon Invergo
> wrote:
>> The data is loaded as expected, but when I try to
>> print the output to the console, only a portion of the data.frame is
>> printed (~65000 characters), presumably because it reached the maximum
>> string size,
On Mon, Mar 23, 2009 at 5:31 PM, Brandon Invergo
wrote:
> The data is loaded as expected, but when I try to
> print the output to the console, only a portion of the data.frame is
> printed (~65000 characters), presumably because it reached the maximum
> string size, and then a seemingly-unrelated
Hello,
I'm enjoying the fun (self-imposed) task of learning Python, RPy2 and
PyGTK all in one go, so this question may be partly due to my general
status as a newbie. My application will have an embedded console in it.
Everything is generally working nicely, however I've noticed that if I
load a p
When looking at this a little more in details, wrapping withVisible()
prior to code evaluation seem to be presently the best way.
I have updated the toy GTK GUI to use withVisible()
(as well use the event processing patch from June and Nathaniel to
refresh interactive graphics)
http://bitbucket.
Nathaniel Smith wrote:
> On Tue, Mar 3, 2009 at 4:12 AM, Laurent Gautier wrote:
>> but my concern is over possible object duplication when returning from
>> 'function(*args, **kwargs)' (not necessarily the case, but if something is
>> invisible and I can't get rid of copying this is annoying - I n
On Tue, Mar 3, 2009 at 4:12 AM, Laurent Gautier wrote:
> but my concern is over possible object duplication when returning from
> 'function(*args, **kwargs)' (not necessarily the case, but if something is
> invisible and I can't get rid of copying this is annoying - I need more
> thinking about th
Carson Farmer wrote:
> Laurent (et al.),
>> Right now having R_Visible as a global is ok for 2.0.x, but for 2.1.x
>> I will be considering whether a call to an invisibly returning
>> function should return None to Python, or else (visibility attribute
>> with the returned objects, etc...).
> The
Laurent (et al.),
> Right now having R_Visible as a global is ok for 2.0.x, but for 2.1.x
> I will be considering whether a call to an invisibly returning
> function should return None to Python, or else (visibility attribute
> with the returned objects, etc...).
The output of withVisible in R s
Exposing the visibility global flag R_Visible is definitely making sense
(since functions returning "invisibly" is something R-ish)
However, I think that the check that R_Visible is FALSE should occur
after the call to Rf_eval has been made. In R, something returned
"invisibly" is only returned
On Mon, Mar 2, 2009 at 5:06 PM, Carson Farmer wrote:
>> This has been annoying me too, so I had a quick look... apparently the
>> (totally awesome) API for this is that you set the global variable
>> R_Visible to FALSE before calling Rf_eval, and then you check it
>> afterwards to see if the retur
To keep this thought going...
>> As you noted, the GTK R console in the demos/ directory outputs a little too
>> much (when doing 'x <- rnorm(100)', the content of 'x' will be returned to
>> the console).
>>
>
> This has been annoying me too, so I had a quick look... apparently the
> (totally
On Thu, Feb 26, 2009 at 12:30 AM, Laurent Gautier wrote:
> As you noted, the GTK R console in the demos/ directory outputs a little too
> much (when doing 'x <- rnorm(100)', the content of 'x' will be returned to
> the console).
This has been annoying me too, so I had a quick look... apparently t
Nathaniel Smith wrote:
> On Sun, Feb 22, 2009 at 5:19 AM, Carson J.Q. Farmer
> wrote:
[...]
> Try calling print() (or show(), I'm not really sure what the
> difference is) on the result of your console evaluations.
print() and show() are mostly equivalent.
print() calls show() for S4 object, but
[back to the list]
Good to hear that updating to rpy2-2.0.3 solved the crashes you
observed. Updating the 2.0.x should be tried whenever a newer version is
available as there should not be disappearing features in the API
(possible changes will mostly happen with 2.1.x).
As you noted, the GTK
On Sun, Feb 22, 2009 at 5:19 AM, Carson J.Q. Farmer
wrote:
> Now using Rpy2, I am having trouble reproducing this functionality. I
> have used rinterface.setWriteConsole() to catch the console output, but
> this does not appear to be all console output, as I get (for example)
> messages from packa
Carson J.Q. Farmer wrote:
> Hi list,
>
> I have written a simple python application, and I would like to have an
> R console embedded within it. For simplicity sake, this is essentially a
> text box which receives user input (R commands), and an text browser
> (read only) for the R output. Usi
Hi list,
I have written a simple python application, and I would like to have an
R console embedded within it. For simplicity sake, this is essentially a
text box which receives user input (R commands), and an text browser
(read only) for the R output. Using Rpy this was relatively simple,
tho
18 matches
Mail list logo