remove_file_if_present: Remove a file if it is present, will do nothing if it is not.

View source: R/remove_file_if_present.R

remove_file_if_presentR Documentation

Remove a file if it is present, will do nothing if it is not.

Description

Remove a file if it is present, will do nothing if it is not.

Usage

remove_file_if_present(filename)

Arguments

filename

name of a file

Value

Nothing. Will remove the file if it is presented, will do nothing if it is not.

Author(s)

Richèl J.C. Bilderbeek

Examples

filename <- tempfile()
file.create(filename)
remove_file_if_present(filename)
remove_file_if_present(filename)

richelbilderbeek/beastier documentation built on Nov. 8, 2023, 9:29 p.m.