Converts a flob()
back to its original file format.
unflob(flob, dir = ".", name = "", ext = "", slob = FALSE, check = TRUE)
The flob()
to save to file.
A string of the path to the directory to save the file in.
A string of the name (without the extension) for the file. If "" (the default) then the original file name is used.
A string of the extension for the file. If "" (the default) then the original extension is used.
A logical scalar specifying whether to process slobs (serialized blobs) instead of flobs. If NA, either will be accepted, but slobs require that ext and name be provided.
A flag indicating whether to run comprehensive checks on user input.
An invisible string of the path to the saved file.
If path ends with a file separator then the name and extension of the flob is added. If the flob is an older flob that was not saved with a name then it is named 'file'.
If path ends with a file name without an extension then the extension of the flob is automatically added. Alternatively if path also includes an extension then it must match the flob's extension.
unflob(flob_obj, tempdir())