[rkward-devel] altering rk.graph.on and rk.graph.off

Prasenjit Kapat kapatp at gmail.com
Thu Sep 2 06:07:52 UTC 2010


On Wed, Sep 1, 2010 at 12:21 PM, Thomas Friedrichsmeier
<thomas.friedrichsmeier at ruhr-uni-bochum.de> wrote:
> Hi,
>
> On Tuesday 31 August 2010, Stefan Rödiger wrote:
>> Am Dienstag 31 August 2010, 05:54:41 schrieb Prasenjit Kapat:
>> > I am guessing it should be easy to do, without the syntax
>> > highlighting. Looking at plugin/rkstandardcomponentgui.cpp, just
>> > sending  "code_property->Preprocess () + code_property->calculate () +
>> > code_property->printout ()" to .rk.cat.output () would do it. Of
>> > course, a button on the GUI somewhere.
>>
>> go for it ;)
>>
>> > The button action will be more appropriate on the plugin dialog box
>> > rather than on the screen device window. (All though, I have arguments
>> > in favor of device window as well.)
>>
>> why not both (at least for testing)?
>
> well, it will be a good deal more difficult to add in the screen device window,
> since it is hard or even impossible to track which commands were used to
> create that plot.
>
> True, for a preview-window we could get that information from the plugin,
> somehow, but in fact even a preview window could be modified from the command-
> line, and we'd have no chance to track the code for those changes.
>
> So I don't think that can be done in a reasonable way.
>
>
> 2) This is not really limited to plots. Copying the R code to the output is
> interesting for any plugin. And in fact this is not really limited to plugins,
> either. On the users' list, Augustin Lobo asked for an option to carbon-copy R
> commands from the console/script windows to the output. Therefore it may make
> sense to implement this at a more central place. E.g. a global option / button
> to turn transcription of R commands into the output window on / off. We may
> need to toy with some ideas, here, but in any case I think this is probably
> something for 0.5.5, rather than 0.5.4.

Fair enough. This, if done at the right place, will be a great feature.

Regards,
-- 
Prasenjit




More information about the Rkward-devel mailing list