jgr.getMenuNames {JGR}R Documentation

JGR Console menus

Description

returns the menu / menu item names

Usage

jgr.getMenuNames()
jgr.getMenuItemNames(menu)

Arguments

menu

name of the menu

Value

a character vector

See Also

jgr.addMenu jgr.addMenuItem

Examples

menus <- jgr.getMenuNames()
index <- which(menus=="Packages & Data")
if(length(index)==0) index <- 1

jgr.insertMenu("User menu",index)
jgr.addMenuItem("User menu", "Good place for user generated menus is",
                "print('before Packages & Data')")

[Package JGR version 1.8-4 Index]