gcommandline            package:gWidgets            R Documentation

_A _c_o_m_m_a_n_d _l_i_n_e _i_n_t_e_r_f_a_c_e

_D_e_s_c_r_i_p_t_i_o_n:

     This constructs a simple command line interface for R

_U_s_a_g_e:

     gcommandline(command = "", assignto = NULL, useGUI = TRUE, useConsole = FALSE, prompt = getOption("prompt"), width = 500, height = 0.6 * width, container = NULL, ...,toolkit =
                      guiToolkit())

_A_r_g_u_m_e_n_t_s:

 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

_D_e_t_a_i_l_s:

     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.

_E_x_a_m_p_l_e_s:

     ## Not run: 
       obj = gcommandline(container=TRUE)
       svalue(obj) <- "2+2"
       ## assign to x
       command = "rnorm(100)"; names(command) = "x"
       svalue(obj) <- command
       ## look at history
       obj[]
     ## End(Not run)

