collect_input: Prompt a User for and Receive Input During a Session

View source: R/collect_input.R

collect_inputR Documentation

Prompt a User for and Receive Input During a Session

Description

Collect input from within an active R session, whether during an interactive session or while running R in batch mode.

Usage

collect_input(prompt = "Enter: ", character.only = FALSE)

Arguments

prompt

A message for prompting the user.

character.only

Whether to strictly process as character. Defaults to FALSE. It ensures that if the user provides a number, it is explicitly coerced to a numerical value. To enforce interpretation as a string requires it to be TRUE


BroVic/myRStuff documentation built on Jan. 31, 2024, 1:01 a.m.