[rkward-devel] rkh file for utility functions
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Sat Sep 25 10:52:09 UTC 2010
Hi,
On Saturday 25 September 2010, Prasenjit Kapat wrote:
> I've added a rk.list.plugins (...) to public.R, I hope it is not
> adding a "new feature."
well, it's sort of a new feature, but the important point is that it looks
safe to add without breaking anything.
> While documenting rk.call.plugin, I felt that
> the user generally will have no idea of what goes as the first
> argument ("plugin").
True. And also, of course, the user generally will have no idea of what the
available arguments are for a particular plugin.
Well, rk.call.plugin() is mostly a by-product of the "Run again" link, and the
automated tests. I'm not sure whether there is a real use-case for it beyond
that (and I've added some words of caution to the .Rd-file), but potentially it
might be interested for scripting tutorial or similar purposes.
> Is there any way to improve this? Right now, I am
> just scanning the pluginmap files... Can the C++ side list all the
> available plugins?
Yes, and I've changed it to use that. However, the C++-side does not keep
track of where the plugin was declared, so this feature is lost. Note that
both versions of rk.list.plugins() also list plugins which are not really
meant to be called from the top-level, i.e. including those designed for
embedding, or context-sensitive plugins like the graphics export-plugin.
Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20100925/08b02131/attachment.sig>
More information about the Rkward-devel
mailing list