Learn R Programming

JGR (version 1.9-2)

jgr.getMenuNames: JGR Console menus

Description

returns the menu / menu item names

Usage

jgr.getMenuNames()
jgr.getMenuItemNames(menu)

Value

a character vector

Arguments

menu

name of the menu

See Also

jgr.addMenu jgr.addMenuItem

Examples

Run this code
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')")

Run the code above in your browser using DataLab