ask_to_proceed: Ask the user if they want to proceed

View source: R/ask_to_proceed.r

ask_to_proceedR Documentation

Ask the user if they want to proceed

Description

[Deprecated]

Usage

ask_to_proceed(msg = "Do you want to proceed?")

Arguments

msg

(string; default = "Do you want to proceed?") a message to the user, often something like "do you want to proceed and run ⁠function()⁠?"

Details

A convenience wrapper to prompt the user if they want to proceed. Deprecated because it basically already exists as usethis::ui_yeah().

Value

a logical where TRUE if the user wants to proceed

Examples

## Not run: 
use_renv <- ask_to_proceed("Do you want to set up renv?")

if (use_renv) {
	setup_renv()
}

## End(Not run)

baslat/sak documentation built on April 14, 2025, 4:14 p.m.