Drops a temporary suffix from the temporary pathname and, by default, renames an existing temporary file accordingly.
# S3 method for default
popTemporaryFile(filename, path=NULL, suffix=".tmp", isFile=TRUE, ..., verbose=FALSE)
Returns the pathname with the temporary suffix dropped.
The filename of the temporary file.
The path of the temporary file.
The suffix of the temporary filename to be dropped.
If TRUE
, the temporary file must exist and
will be renamed. If FALSE
, it is only the pathname string
that will be modified. For details, see below.
Not used.
A logical
or Verbose
.
Henrik Bengtsson
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.
See pushTemporaryFile
() for more details and an example.