Hi,

On Tuesday 18 October 2011, meik michalke wrote:
> i just added two new JS functions to trunk:
> 
>  - shortName()
>    JS equivalent to rk.get.short.name(), i.e. turn
>    my.data.frame[["var1"]] and my.list[["var1"]][["var2"]]
>    into var1 and var2

what use case do you have in mind for short names inside JS?

>  - getValueShort()
>    a getValue() alternative for varslots, to get an array of
>    short names directly

Well, again, I'm not sure about _short_ names. But a function to make it 
easier to deal with lists of objects would certainly be useful, indeed. 
Perhaps even as compressed as

function getObjectList(id) {
        return ('rk.list (' + getValue(id).split ("\n").join (", ") + ')');
}

> i put them to rkward/scriptbackends/common.js -- is that a good place?

Yes. However, some of the stuff in common.js is not really common (to the R 
code generating JS, and the JS used inside the GUI logic). I'll have to sort 
that out one day.

> i
> could probably come up with some more functions to ease the JS coding part
> for rather common stuff.

Ok, go ahead, but please be somewhat conservative. Once plugins start using 
these functions, they'll be more or less set in stone, so we should be careful 
not to add stuff that are not really needed.

Regards
Thomas

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel

Reply via email to