add_button | R Documentation |
Adding button that trigger a customized dialog box.
The dialog box contains three parts:
1. An optional single output object space
2. Single or multiple input objects
3. control buttons of submission or cancellation
add_button(name_function,name_output,a1,a2,e,execute_now,com,typein,buttons)
name_function |
Required: the function name |
name_output |
Required: initial name of output, "" is used for function without outputs |
a1 |
Required: array of names of input arguments |
a2 |
Required: array of initial values of input arguments |
e |
Required: gedit object to receive the output |
execute_now |
Optional: if TRUE, the command will be execute directory instead of outputting to gedit object, default is FALSE |
com |
Optional: a string holds the comments |
typein |
Optional: types of the entry box, defualt is "gedit" object |
buttons |
Optional: string object is used if some of the entries require extra dialog box |
add_button("draw_haplotypes","",c("haplotypes"),c("@@pop2"),t0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.