wait_for_writable | R Documentation |
This functions gives the user a chance to make the output file writeable before a write attempt is actually made by R to avoid having run the whole program again upon write failure.
wait_for_writable(
filename,
prompt_text = paste0("The file '", filename,
"' is not writable. Please close all applications using this file. Press '",
abort_answer, "' to abort!"),
abort_answer = "n"
)
filename |
The file to test for writable |
prompt_text |
If not writable, show this prompt text to the user |
abort_answer |
If the user enters this string into the prompt, this function will stop() |
Note: The file will not be overwritten or changed by this function.
TRUE if writable, FALSE if aborted by user or (not-writeable and non-interactive)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.