add_button: add_button

add_buttonR Documentation

add_button

Description

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

Usage

add_button(name_function,name_output,a1,a2,e,execute_now,com,typein,buttons)

Arguments

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
the user may select from "tkgetSaveFile", "tkgetOpenFile", "tkchooseDirectory", OR NA

Examples

add_button("draw_haplotypes","",c("haplotypes"),c("@@pop2"),t0)

USDA-ARS-GBRU/crossword documentation built on Oct. 11, 2024, 12:51 a.m.