unflob | R Documentation |
Converts a flob()
back to its original file format.
unflob(flob, dir = ".", name = "", ext = "", slob = FALSE, check = TRUE)
flob |
The |
dir |
A string of the path to the directory to save the file in. |
name |
A string of the name (without the extension) for the file. If "" (the default) then the original file name is used. |
ext |
A string of the extension for the file. If "" (the default) then the original extension is used. |
slob |
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. |
check |
A flag indicating whether to run comprehensive checks on user input. |
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.
An invisible string of the path to the saved file.
unflob(flob_obj, tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.