Learn R Programming

smarter (version 1.0.1)

make_menu: make_menu

Description

Constructs an interactive menu for the user

Usage

make_menu(PROMPT, OPTS, INDENT = "   ")

Value

Character string of user's response

Arguments

PROMPT

A character string prompt to the user

OPTS

A character vector where elements contain a number, then a closing parentheses, then the option value

INDENT

A character string for the amount of indentation from the left margin