check_can_create_file: Internal function

View source: R/check_can_create_file.R

check_can_create_fileR Documentation

Internal function

Description

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

Usage

check_can_create_file(filename, overwrite = TRUE)

Arguments

filename

file that may or may not be created

overwrite

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

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.

Value

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

Author(s)

Richèl J.C. Bilderbeek

Examples

check_can_create_file("my_local_file.txt")

beastier documentation built on Nov. 7, 2023, 5:08 p.m.