The blob is not written to the object database.
1 2 3 4
The path vector with files to hash.
A vector with the sha for each file in path.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
## Not run: ## Create a file. NOTE: The line endings from writeLines gives ## LF (line feed) on Unix/Linux and CRLF (carriage return, line feed) ## on Windows. The example use writeChar to have more control. path <- tempfile() f <- file(path, "wb") writeChar("Hello, world!\n", f, eos = NULL) close(f) ## Generate hash hashfile(path) identical(hashfile(path), hash("Hello, world!\n")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.