del.menu.cmd {base} | R Documentation |
This command remove an entry from the User's Menu.
del.menu.cmd(label)
label |
the string characterizing the menu entry in the User's menu. If R finds this entry in the User's menu, then it will remove it from the menu. The matching is not case sensitive. If the item is the last item in the User's menu, the whole menu will be suppressed. |
add.menu.cmd,del.num.cmd
.
# we create 3 menus
add.menu.cmd("Menu1","dir()")
add.menu.cmd("Menu2","dir()")
add.menu.cmd("Menu3","dir()")
# we remove the second one
del.menu.cmd("Menu2")
# take care of the case, the first menu will be also removed
del.menu.cmd("menu1")