[rkward-devel] idea: code readability

meik michalke Meik.Michalke at uni-duesseldorf.de
Tue Oct 18 11:26:34 UTC 2011


hi,

i was thinking about this for some time now: i believe that especially for 
people new to R, the code presented below plugin dialogs is often "too much 
information". that is, the whole printout() section is usually highly RKWard 
specific, so to learn how things are done "in R" it might even be confusing 
for beginners. i recognized this repeatedly when i was introducing students to 
R via RKWard; it was easy to say they could look at the code to learn how to 
do things in their own scripts, but a little tiresome to explain to them which 
parts of the code are irrelevant and why (they are just not satisfied to hear 
"... oh, and ignore everything below that comment").

it's probably tough to implement, but could we somehow have a switch to make 
the prining section in the code window disappear, or folded in, or at least 
change the syntax highlighting significantly? 

this is probably not only for novices. most of the time, i don't need to see 
the printout code myself but only care about the parts above it, and then need 
to scroll. but at least for plugin development/debugging it's of course 
necessary to see what's generated there. so there would have to be some way of 
configuring that. either globally, in the dialog window, and/or in the 
JavaScript code itself (to set the desired default view).

can you follow?


viele grüße :: m.eik

-- 
  dipl. psych. meik michalke
  abt. f"ur diagnostik und differentielle psychologie
  institut f"ur experimentelle psychologie
  heinrich-heine-universit"at d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20111018/9cbcc6ca/attachment.sig>


More information about the Rkward-devel mailing list