Learn R Programming

beastier (version 2.5)

check_can_create_file: Internal function

Description

Check that a file can be created at a certain path.

Usage

check_can_create_file(filename, overwrite = TRUE)

Value

Nothing. Will stop if a file cannot be created at a certain path.

Arguments

filename

file that may or may not be created

overwrite

if TRUE, if filename already exists, it will be deleted by this function

Author

Richèl J.C. Bilderbeek

Details

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.

Examples

Run this code
check_can_create_file("my_local_file.txt")

Run the code above in your browser using DataLab