Issue an alert that a file or folder has been created at the provided path.
Source:R/cli_alerts.R
alert_file_created.Rd
alert_file_created
issues an alert that a file has been created.
alert_folder_created
issues an alert that a folder has been created.
Usage
alert_file_created(file, base_dir = ".", action = "")
alert_folder_created(folder, base_dir = ".", action = "")
Arguments
- file
(string) an absolute path to the file in question.
- base_dir
(string) a path (abs or relative) to root output directory (defaults to ".", the project root).
- action
(string) text stating how the function reacts to the message (default to an empty string).
- folder
an absolute path to the directory in question.
See also
Other cli-dev:
alert_opening()
,
alert_writing_to()
,
format_action()
,
warn_file_exists()
,
warn_file_missing()