Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

popBackupFile

Drops a backup suffix from the backup pathname


Description

Drops a backup suffix from the backup pathname and, by default, restores an existing backup file accordingly by renaming it.

Usage

## Default S3 method:
popBackupFile(filename, path=NULL, suffix=".bak", isFile=TRUE,
  onMissing=c("ignore", "error"), drop=TRUE, ..., verbose=FALSE)

Arguments

filename

The filename of the backup file.

path

The path of the file.

suffix

The suffix of the filename to be dropped.

isFile

If TRUE, the backup file must exist and will be renamed. If FALSE, it is only the pathname string that will be modified. For details, see below.

onMissing

A character string specifying what to do if the backup file does not exist.

drop

If TRUE, the backup file will be dropped in case the original file already exists or was successfully restored.

...

Not used.

verbose

A logical or Verbose.

Value

Returns the pathname with the backup suffix dropped.

Author(s)

Henrik Bengtsson

See Also

See pushBackupFile() for more details and an example.


R.utils

Various Programming Utilities

v2.10.1
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.