erase.File: Deletes a file or a directory

Description Usage Details Value Author(s) See Also

Description

Deletes a file or an empty directory on the file system. If a non-empty directory is tried to be deleted, FALSE is returned.

Usage

1
2
## S3 method for class 'File'
erase(this, ...)

Details

Since both delete and remove are used as low level methods in R.oo and base, respectively, this method was named erase instead.

Value

Returns TRUE if the file or the directory was succesfully deleted, otherwise FALSE.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

Internally file.remove() and unlink() is used. For more information see File.


HenrikBengtsson/R.io documentation built on May 6, 2019, 11:54 p.m.