popBackupFile
From R.utils v1.32.4
by Henrik Bengtsson
Drops a backup suffix from the backup pathname
Drops a backup suffix from the backup pathname and, by default, restores an existing backup file accordingly by renaming it.
- Keywords
- utilities, programming, IO
Usage
## S3 method for class 'default':
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. IfFALSE
, it is only the pathname string that will be modified. For de - 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
orVerbose
.
Value
- Returns the pathname with the backup suffix dropped.
See Also
See pushBackupFile
() for more details and an example.
Community examples
Looks like there are no examples yet.