check_can_create_file {beastier} | R Documentation |
Check that a file can be created at a certain path.
check_can_create_file(filename, overwrite = TRUE)
filename |
file that may or may not be created |
overwrite |
if TRUE, if |
Will stop if not. Will stop if the file already exists. Does so by creating an empty file at the path, and then deleting it.
Nothing. Will stop if a file cannot be created at a certain path.
Richèl J.C. Bilderbeek
check_can_create_file("my_local_file.txt")