[rkward-devel] R function to add plugin?
meik michalke
meik.michalke at uni-duesseldorf.de
Sat Oct 1 19:27:02 UTC 2011
hi,
am Samstag 01 Oktober 2011 (20:51) schrieb Thomas Friedrichsmeier:
> On Saturday 01 October 2011, meik michalke wrote:
> > as for rkwarddev, i have some vague ideas to further help creating the JS
> > code
>
> will it also be able to generate JS code for an existing plugin XML file?
have you tried
cat(rk.JS.doc(variables=rk.JS.scan("path/to/some_plugin.xml")))
yet?
it's not really much, but at least it fetches the variables out of the XML
file and gives you a start.
> Personally, I think I'll probably continue to write the plugin XML
> directly, rather than using rk.XML.varslot() and friends.
sure, it's just an additional way of doing it. although i tried to cover
certain cases to really save a lot of typing, for instance:
test.vars <- rk.XML.vars("Select some vars", "Vars go here",
formula.dependent="Dependent var")
cat(pasteXMLNode(test.vars))
> However, having a helper create skeleton help and JS files from that would
> be very interesting.
as for help files, try
help.doc <- rk.rkh.doc(settings=rk.rkh.scan("path/to/some_plugin.xml"))
cat(pasteXMLTree(help.doc))
rk.plugin.skeleton() calls these functions to create the JS and help files
with something to start.
> Either way, keep it coming!
sure will, really having fun writing that stuff ;-)
> I suggest "svn move"ing them to a folder "packages" in the SVN root (i.e. on
> the same level as "rkward", "scripts", "build", etc.). It doesn't really
> matter too much, but I think this would be slightly "cleaner".
ok, i'll take care of that these days.
viele grüße :: m.eik
--
dipl. psych. meik michalke
institut f"ur experimentelle psychologie
abt. f"ur diagnostik und differentielle psychologie
heinrich-heine-universit"at d-40204 d"usseldorf
-------------- 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/20111001/33d8eaf2/attachment.sig>
More information about the Rkward-devel
mailing list