Description Usage Arguments Details Examples
This constructs a simple command line interface for R
1 2 |
command |
Initial command to evalues |
assignto |
Assigns output to this variable is non-NULL |
useGUI |
Is result also printed to GUI. Use FALSE to get text-only instance |
useConsole |
Is result also printed to console? |
prompt |
Prompt to use |
width |
Width of widget in pixels |
height |
Height of widget in pixels |
container |
Optional container to attach to |
... |
Ignored for now |
toolkit |
Which GUI toolkit to use |
Additional commands can be added programmatically with the
svalue<-
method. The The value assigned is a string containing
the command. If it has a names
attribute, this is taken as the
variable name to assign the output to.
The svalue
method returns the command history.
The "["
method can be used to retrieve the command history as well.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.