Added missing util function
This commit is contained in:
30
man/select_menu.Rd
Normal file
30
man/select_menu.Rd
Normal file
@@ -0,0 +1,30 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.R
|
||||
\name{select_menu}
|
||||
\alias{select_menu}
|
||||
\title{Displays a menu for the user to select elements from.}
|
||||
\usage{
|
||||
select_menu(
|
||||
choices,
|
||||
title = NULL,
|
||||
msg = "Enter a number from the menu above, or an empty line to default: ",
|
||||
default = 1
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{choices}{A character vector of choices the user must choose from}
|
||||
|
||||
\item{title}{An optional string containing text for a title line above the
|
||||
menu}
|
||||
|
||||
\item{msg}{An optional string containung the text directing the user what to
|
||||
do, displayed below the menu}
|
||||
|
||||
\item{default}{An integer containing the index of the default choice to return}
|
||||
}
|
||||
\value{
|
||||
string Selected menu choice
|
||||
}
|
||||
\description{
|
||||
Displays a menu for the user to select elements from.
|
||||
}
|
||||
Reference in New Issue
Block a user