hi, i've moved rkwarddev and XiMpLe into a new folder at root level, "packages", as you suggested (svn move threw me an error, i had to re-add the files, hope nothing got lost there).
also, rkwarddev gained some quite experimental stuff to generate JavaScript code with R. as said before i mostly wanted to be able to use the XML objects and have them replaced with their ID in the code, which is basically working now with a function i called id(): # first create an example checkbox XML node cbox1 <- rk.XML.cbox(label="foo", value="foo1", id.name="CheckboxFoo.ID") # some useless demonstration of id() id("cbox1 has the ID ", cbox1, "!") # returns: "cbox1 has the ID CheckboxFoo.ID!" cat(id("cbox1 has the ID ", cbox1, "!", quote=TRUE, collapse=" + ")) # returns: "cbox1 has the ID " + CheckboxFoo.ID + "!" so this can be used to paste() together anything manually. but i also implemented two very common cases for convenience: echo("bla <- \"", cbox1, "\"") # with cat() generates: # echo("bla <- \"" + CheckboxFoo.ID + "\""); # so echo() creates a JS clone of itself... ite(id(cbox1), echo("bar <- \"", cbox1, "\""), echo("bar <- NULL")) # ite is just short for if/then/else, so this produces: # if(CheckboxFoo.ID) { # echo("bar <- \"" + CheckboxFoo.ID + "\""); # } else { # echo("bar <- NULL"); # } 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
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________ RKWard-devel mailing list RKWard-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rkward-devel