popTemporaryFile

0th

Percentile

Drops a temporary suffix from the temporary pathname

Drops a temporary suffix from the temporary pathname and, by default, renames an existing temporary file accordingly.

Keywords
utilities, programming, IO
Usage
## S3 method for class 'default':
popTemporaryFile(filename, path=NULL, suffix=".tmp", isFile=TRUE, ..., verbose=FALSE)
Arguments
filename
The filename of the temporary file.
path
The path of the temporary file.
suffix
The suffix of the temporary filename to be dropped.
isFile
If TRUE, the temporary file must exist and will be renamed. If FALSE, it is only the pathname string that will be modified.
...
Not used.
verbose
A logical or Verbose.
Details

If isFile is FALSE, the pathname where the suffix of the temporary pathname has been dropped is returned. If isFile is TRUE, the temporary file is renamed. Then, if the temporary file does not exists or it was not successfully renamed, an exception is thrown.

Value

  • Returns the pathname with the temporary suffix dropped.

See Also

See pushTemporaryFile() for more details and an example.

Aliases
  • popTemporaryFile.default
  • popTemporaryFile
Documentation reproduced from package R.utils, version 1.7.3, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.