auto_detect_vars: Auto-detect Variables
Description
Detects variable names mentioned in the prompt that exist in the environment.
Usage
auto_detect_vars(prompt, envir)
Value
A character vector of variable names.
Arguments
- prompt
The user's prompt.
- envir
The environment to check.