This help topic is for R version 1.5.0. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/get.num.cmd.html
get.num.cmd {base}R Documentation

Returns the command associated to a user menu item from the User's menu

Description

This command returns the R command associated to an item from the User's Menu.

Usage

get.num.cmd(menunum)

Arguments

menunum

the menu number characterizing the menu entry in the User's menu. If R finds this entry in the User's menu, then it will return the R command associated to it and the menu item.

See Also

get.menu.cmd,add.menu.cmd.

Examples

# we create 3 menus
add.menu.cmd("Menu1","ls()")
add.menu.cmd("Menu2","dir()")
add.menu.cmd("Menu3","library()")

# we get the second one
get.menu.cmd("Menu2")
# should have returned
# [1] "dir()" "Menu2"

[Package base version 1.5.0 ]