Learn R Programming

beastier (version 2.5)

remove_file_if_present: 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)

Value

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

Arguments

filename

name of a file

Author

Richèl J.C. Bilderbeek

Examples

Run this code
filename <- tempfile()
file.create(filename)
remove_file_if_present(filename)
remove_file_if_present(filename)

Run the code above in your browser using DataLab