write_file_md5 | R Documentation |
Write file with md5 hash check
write_file_md5(
x,
path = NULL,
method = mark_write_methods(),
overwrite = NA,
quiet = FALSE,
encoding = "UTF-8",
compression = getOption("mark.compress.method", "default"),
...
)
x |
An object to write to file |
path |
The file or connection to write to (dependent on part by method) |
method |
The method of saving the file. When |
overwrite |
When |
quiet |
When |
encoding |
The encoding to use when writing the file. |
compression |
The compression method to use when writing the file. |
... |
Additional arguments passed to the write function. |
x
, invisibly. When path
is not the stdout()
, x
is returned
with the attribute "path"
set to the result of file_copy_md5()
.
# just writes to stdout()
df <- data.frame(a = 1, b = 2)
write_file_md5(df)
temp <- tempfile()
write_file_md5(df, temp) # new
write_file_md5(df, temp) # same
df$c <- 3
write_file_md5(df, temp) # changes
fs::file_delete(temp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.