Hi.
I'm trying to write an Rpad that edits scripts. Textarea seems like an
obvious tool, but unlike other input elements, it seems that the
contents are not sent to R on 'calculate'. To illustrate using the page
below: load, F9, edit text, F9. The original contents of 'script' are
restored. Furthermore, I can't eliminate the leading and trailing
whitespace in the textarea.
Thanks in advance for any ideas,
-Tim Bergsma
Metrum Research Group, LLC
<html>
<head>
<script type="text/javascript" src="gui/Rpad.js"/>
</head>
<body>
<pre dojoType="Rpad" rpadRun="init">
script <- c("test","test")
</pre>
<pre dojoType="Rpad">
script
HTMLon()
HTMLtag("textarea",name="script")
writeLines(script)
HTMLetag("textarea")
</pre>
</body>
</html>